Skip to main content

All Questions

3 votes
3 answers
2k views

Algorithm to find out the number of 1's in the binary representation over a range of positive numbers

I have just come across a problem, where we supposed to calculate the number of 1's in the binary representation of numbers over a large range. Is there any algorithm or technique to find it easily? ...
Prithiv's user avatar
  • 33
0 votes
1 answer
1k views

Binary numbers addition

I have just started doing some binary number exercices to prepare for a class that i will start next month and i got the hang of all the conversion from decimal to binary and viceverca But now with ...
Demiss's user avatar
  • 11
11 votes
5 answers
25k views

How do computers translate everything to binary? When they see a binary code, how do they know if it represents a number or a word or an instruction?

I know how computers translate numbers to binary. But what I don't understand is that I've heard that computers translate everything (words, instructions, ...) to binary, not just numbers. How is this ...
user50746's user avatar
  • 291