More puzzles like this one?
he meant you should write it like algorithms(Yes, there is a specific syntax). Just to show people that isn't just a single language.
EDIT: Something like this:
Variables
a: INTEGER;
i: INTEGER;
Begin
| a <- floor(rand());
| for i=0 to 9 do
| a<-a+i;
| return a**2;
End
Comment has been collapsed.
I've never seen two asterisks (**) before a constant in programming, so I'm out. No idea what it means.
Comment has been collapsed.
And it applies to all languages? 'Cause I study C++ and I've never seen it.
Comment has been collapsed.
I just learned what it is. You should look up operators from some languages because this isn't pseudo code. I hope I'm allowed to say this, OP. If I'm not, just tell me and I'll delete it.
Comment has been collapsed.
I'm calm. :P Just trying to understand your code. Thanks for fixing it. :)
Comment has been collapsed.
bump, I solved it.
Many thanks
Think of all trees as a "Class".
Different types of trees are called "Methods" (in programming).
So there are sequoia, pine, and oak trees. These trees are individually called "Methods".
But collectively, these different species of tree (methods), all belong to the family of "Tree" (Class)
Sorry if I wasn't clear enough, I don't have a programming degree. I can't explain this clearly! Sorry.
Comment has been collapsed.
Sorry, but you either use pseudo-code, or given language. That puzzle is simply put bad because a programmer like me reading that pseudo-code has no idea what ** means, or that rand() is supposed to return 0-1 value. Random in C# returns value from 0 to int.max, for example.
Yes, I solved the puzzle, and I find it bad. Either write full thing in pseudo-code, or full thing in given language, do not require from reader to understand what you meant. Language is named language because it exactly defines what is going on, regardless of who reads the code (assuming he knows the given language). Pseudo-code is supposed to also work like language, which is - to be understood by all programmers, but NOT including any language-specific things such as pointers in C++ or classes in C#.
One style, or another, not both mixed up. If you require things that exist only in given language (aka syntax), write full thing in it.
Comment has been collapsed.
329 Comments - Last post 2 minutes ago by Banortwi
49 Comments - Last post 10 minutes ago by Atombomb2097
34 Comments - Last post 25 minutes ago by malkavian1331
34 Comments - Last post 48 minutes ago by OneManArmyStar
3 Comments - Last post 48 minutes ago by lostsoul67
371 Comments - Last post 1 hour ago by Atombomb2097
39 Comments - Last post 2 hours ago by Chris76de
10,786 Comments - Last post 15 minutes ago by Talleyrand
42 Comments - Last post 18 minutes ago by Ugluck
41 Comments - Last post 19 minutes ago by BoBsync
601 Comments - Last post 43 minutes ago by RePlayBe
17,827 Comments - Last post 49 minutes ago by GeekDoesStuff
70 Comments - Last post 52 minutes ago by RePlayBe
1,154 Comments - Last post 1 hour ago by maratets
Puzzle:
http://www.itstoohard.com/puzzle/qArNsE9w
(no, the ** is not a pointer)
Whitelist GA is: (LV 0)
http://www.steamgifts.com/giveaway/41MCc/turbo-pug
I can only guarantee you'll get on my whitelist in time for the GA if you solve before MLK day ends. (If you miss the GA you can still get on my whitelist as long as you solve before January ends)
Thanks to everyone who gave feedback on the format of the puzzle!
Please don't bump this thread - actually. Don't. My whitelist is getting too big. :P
Comment has been collapsed.