You are viewing a single comment's thread. Return to all comments →
Try the toBinaryString function in Java. Here is a scala one-liner:
Integer.toBinaryString(n).split("0+").sorted.last.length
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
Try the toBinaryString function in Java. Here is a scala one-liner: