'Bit Test' challenge... the strange coding.. please help me.

Alkazhim
Posts: 1
Joined: Wed Oct 29, 2008 7:44 pm

Post by Alkazhim »

Sad to say, but as english is not my native language (especially not "talking math", I don't get it ..
:(

*crying*
Al
grospolina
Posts: 2
Joined: Mon Oct 27, 2008 6:39 pm

Post by grospolina »

You say it! But thanks to all others,... english isn't my nativ language to but i reed this thread about 10 times and now... i got the right words to write it down and i solved it :D
Lysander
Posts: 4
Joined: Sat Nov 01, 2008 9:51 pm

Post by Lysander »

Well, English is not my native language, but I think I am quite good. Perhaps I am mistaken, but it seems to me that the question is grammatically incorrect. Is it possible to say "The following function tests its input is what?"
Honestly, I don't understand what this is supposed to mean.
sigi
Posts: 37
Joined: Sun Oct 26, 2008 4:58 pm

Post by sigi »

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.
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.

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.
samuelandjw
Posts: 8
Joined: Sat Nov 01, 2008 2:49 pm

Post by samuelandjw »

If you know the & operator, this is trivial. But as I'm not native English speaker, I still don't understand 'blank for blank'. ... so could anybody tell me what the answer is in private message? I'll appreciate it.
lukosch
Posts: 1
Joined: Thu Oct 30, 2008 8:39 pm

Post by lukosch »

To avoid server pounding, after trying a challenge 10 times, you must wait 30 between tries. (Your last try was 10 sec(s) ago.)
30 what?

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.
wannabe
Posts: 12
Joined: Fri Dec 19, 2008 7:38 pm

Post by wannabe »

c doesnt have bool as standard datatyp, but c++ has.
someone tell me if im wrong ... ;]

i dont know how to write the anwser too, but i know what the code does.
wannabe
Posts: 12
Joined: Fri Dec 19, 2008 7:38 pm

Post by wannabe »

Hi,

Code: Select all

bool testIt(int x) {
	bool returnW;
	int y = x - 1;
	returnW = (x & y);
  return (returnW == 0);
}
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...
blundfried
Posts: 3
Joined: Thu Mar 19, 2009 12:50 pm

Post by blundfried »

Hi, I think I know what this code does - actually I'm not finding the right words for it.... can I send my idea to somebody - so that I get the right words?
thank you...
User avatar
karma-fusebox
Posts: 23
Joined: Fri Mar 06, 2009 1:37 pm

Post by karma-fusebox »

"blank of blank" says the answers "half of 42" or "primefactor of 3462234" would be valid.
(in fact, they are not. but maybe this was your problem.. write a pm if you are still in trouble)
wannabe
Posts: 12
Joined: Fri Dec 19, 2008 7:38 pm

Post by wannabe »

Another tip to solve this one is to look at the code. Think about what it does. If you know what it does, you should know what means what in english. My main Problem was, that my english isn't 100%. Even though I knew all needed word's, i didn't get it for a day or two.
psycore
Posts: 8
Joined: Wed Feb 18, 2009 5:40 am

Post by psycore »

karma-fusebox wrote:"blank of blank" says the answers "half of 42" or "primefactor of 3462234" would be valid.
(in fact, they are not. but maybe this was your problem.. write a pm if you are still in trouble)
yay, thanks dude. That one helped a lot.
bottomy
Posts: 4
Joined: Sat Jun 13, 2009 5:53 pm

Post by bottomy »

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?
DJSigmund
Posts: 6
Joined: Thu Mar 19, 2009 10:24 pm
Location: Munich
Contact:

Post by DJSigmund »

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!
If you were MEANT to understand it, we wouldn't have called it code
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post by CodeX »

The powers that be wrote:Write your answer out in words please (format: 'blank of blank')
I can see why this would be a problem for non-native English speakers, maybe a thesaurus would help you find synonyms of the word you have
Post Reply