'Bit Test' challenge... the strange coding.. please help me.
-
- Posts: 2
- Joined: Mon Oct 27, 2008 6:39 pm
The actual answer to the question has been posted already. I only helped with the wording. If at all, this challenge has been given away already.tails wrote:Hey, do not write the answer here!
It spoils the challenge. Everyone can see it.
You should delete it as soon as possible.
Edit: Thanks.
In my opinion, the wording should be changed. I agree that it can be very confusing for non-native speakers, and I don't think it's in the spirit of these challenges to test for English language abilities (there are already enough of them among the crypto challenges).
I recognize that it's very hard to test for an answer to this challenge, but "blank of blank" is just too weird. At least go for something along the lines of "? of ?" with an explanation to insert some word for the question marks.
-
- Posts: 8
- Joined: Sat Nov 01, 2008 2:49 pm
30 what?To avoid server pounding, after trying a challenge 10 times, you must wait 30 between tries. (Your last try was 10 sec(s) ago.)
Can't get it, too. I know what this function does but i don't know how to explain it with 3 Words in that ? of ?-Format. Unfortunately english is not my native language. Really frustrating. The answer are really just 3 words?
Edit: OK, got it. Really just 3 words.
Hi,
is this the same?
I still have no idea, can someone help me and look at my thoughts?
(1)2
(10)2
(100)2
(1000)2
(10000)2
(100000)2
(1000000)2
(10000000)2
(100000000)2
(1000000000)2
...
or
0x1
0x2
0x4
0x8
0x10
0x20
0x40
0x80
...
or
1
2
4
8
16
32
64...
Code: Select all
bool testIt(int x) {
bool returnW;
int y = x - 1;
returnW = (x & y);
return (returnW == 0);
}
I still have no idea, can someone help me and look at my thoughts?
(1)2
(10)2
(100)2
(1000)2
(10000)2
(100000)2
(1000000)2
(10000000)2
(100000000)2
(1000000000)2
...
or
0x1
0x2
0x4
0x8
0x10
0x20
0x40
0x80
...
or
1
2
4
8
16
32
64...
-
- Posts: 3
- Joined: Thu Mar 19, 2009 12:50 pm
- karma-fusebox
- Posts: 23
- Joined: Fri Mar 06, 2009 1:37 pm
hmm im a little confused about what to write for the answer. i think i understand what its doing, like say x = 100
then (100 & (100 - 1))
(100 & 99)
1100100 & 1100011
= 1100000 = 96
but its testing to see if it will equal 0, so are we meant to find what x should be to equal 0 (which i've done). then if so i don't really get how im supposed to write it like i know the examples karma-fusebox gave, but i guess im not understanding exactly whats happening. so any clues where to look from here to find what its to do with or something?
then (100 & (100 - 1))
(100 & 99)
1100100 & 1100011
= 1100000 = 96
but its testing to see if it will equal 0, so are we meant to find what x should be to equal 0 (which i've done). then if so i don't really get how im supposed to write it like i know the examples karma-fusebox gave, but i guess im not understanding exactly whats happening. so any clues where to look from here to find what its to do with or something?
Hey Guys,
can anbody help me, as I cant get the right wording...
I know what the code does and when it is true, so all missing is the answer...
I tried *** of (a number) and think that (a number) is correct, but im not sure what to write for ***...
I am an german native speaker and tried to translate the german word for it into english, but it was wrong...
Id appreciate help via PM!
Thanks!
can anbody help me, as I cant get the right wording...
I know what the code does and when it is true, so all missing is the answer...
I tried *** of (a number) and think that (a number) is correct, but im not sure what to write for ***...
I am an german native speaker and tried to translate the german word for it into english, but it was wrong...
Id appreciate help via PM!
Thanks!
If you were MEANT to understand it, we wouldn't have called it code