Which of the following decimal numbers has more 0 ’ s than 1 ′ s in its binary representation?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
6 6 = 2 6 + 2 = 1 0 0 0 0 0 0 2 + 1 0 2 = 1 0 0 0 0 1 0 2
The way to go about it is to look for the number which is just a little larger than a power of 2.
But what about the other numbers that are given in the list?
Log in to reply
It doesn't matter. It's the first on the list. The problem says there's only one.
Log in to reply
So you just chose one of the options without testing the rest?
Log in to reply
@Pi Han Goh – No, I tested the first option, which met he conditions imposed by the problem. I stopped checking after that. https://en.m.wikipedia.org/wiki/Short-circuit_evaluation
Log in to reply
@Zach Bian – But how do you know that the other numbers don't satisfy the conditions imposed by the problem?
Log in to reply
@Pi Han Goh – It's a multiple choice problem. If one of the answers is right, the others are wrong or don't matter, unless it's one of those "All of the Above" or "Both II and IV" answers. The system only allows for the selection of one answer. If the answer is true and is not included in any other answer, then it is sufficient to say that that answer is the correct one, or the problem is too easy because it raises the probability of guessing the correct answer. 66 happened to be the first choice for me, so I tried it first. If it didn't meet the conditions, I would have checked the others.
So in short, because it would break the problem.
@Zach Bian How to use the computing language in brilliant ?
Problem Loading...
Note Loading...
Set Loading...
5 5 ( 1 0 ) = 1 1 0 1 1 1 ( 2 )
9 9 ( 1 0 ) = 1 1 0 0 0 1 1 ( 2 )
7 7 ( 1 0 ) = 1 0 0 1 1 0 1 ( 2 )
6 6 ( 1 0 ) = 1 0 0 0 0 1 0 ( 2 )
3 7 ( 1 0 ) = 1 0 0 1 0 1 ( 2 )
5 5 has 5 1's, and 1 0's, so 5 5 is not the answer.
9 9 has 4 1's, and 3 0's, so 9 9 is also not the answer.
7 7 has 4 1's, and 3 0's, so 7 7 is not the answer, either.
6 6 has 2 1's, and 5 0's, so 6 6 is the answer.
3 7 has 3 1's, and 3 0's, so 3 7 is not the answer, too.