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.
17 Comments - Last post 1 minute ago by ONZRAL
38 Comments - Last post 55 minutes ago by hbarkas
20 Comments - Last post 2 hours ago by QuartzPort
1,063 Comments - Last post 3 hours ago by Mayanaise
12 Comments - Last post 4 hours ago by Formidolosus
331 Comments - Last post 8 hours ago by Daud
22 Comments - Last post 9 hours ago by FEGuy
10 Comments - Last post 7 minutes ago by inmate66
2,770 Comments - Last post 12 minutes ago by Mayanaise
17,178 Comments - Last post 13 minutes ago by cpj128
27 Comments - Last post 17 minutes ago by moonlightdriver
3,556 Comments - Last post 33 minutes ago by NekroNoob
118 Comments - Last post 35 minutes ago by faelynaris
109 Comments - Last post 37 minutes ago by BlackbeardXIII
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.