it's supposed to take binary and count the 1's.input 10010 gives me 5 but input 18 gives me right answer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson