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.
192 Comments - Last post 8 minutes ago by Golwar
318 Comments - Last post 16 minutes ago by Gamy7
31 Comments - Last post 52 minutes ago by EloyOn
27 Comments - Last post 54 minutes ago by FateOfOne
366 Comments - Last post 1 hour ago by Aliaxi
26 Comments - Last post 1 hour ago by Chris76de
25 Comments - Last post 2 hours ago by SupportForFun
55 Comments - Last post 48 seconds ago by Moony1986
68 Comments - Last post 6 minutes ago by zevnda
600 Comments - Last post 28 minutes ago by ExcelElmira
276 Comments - Last post 46 minutes ago by SlappyBag
623 Comments - Last post 46 minutes ago by Prosac
132 Comments - Last post 51 minutes ago by reigifts
3 Comments - Last post 53 minutes ago by mhetralla
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.