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.
21 Comments - Last post 49 minutes ago by Seibitsu
1,765 Comments - Last post 49 minutes ago by Seibitsu
3 Comments - Last post 3 hours ago by lostsoul67
8 Comments - Last post 5 hours ago by Stakaniy
540 Comments - Last post 7 hours ago by Ledyba
47,106 Comments - Last post 8 hours ago by kbronct
49 Comments - Last post 8 hours ago by blueflame32
794 Comments - Last post 10 minutes ago by JimLink
95 Comments - Last post 19 minutes ago by Xeton99
2 Comments - Last post 54 minutes ago by Zarddin
5 Comments - Last post 58 minutes ago by schmoan
19 Comments - Last post 1 hour ago by Bum8ara5h
7,966 Comments - Last post 1 hour ago by shandyseggs
2,728 Comments - Last post 1 hour ago by BanjoBearLV
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.