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

8 years ago*

Comment has been collapsed.

More puzzles like this one?

View Results
Yes
No
I didn't even look at the puzzle so I'm choosing this option to not dilute the poll results.
Mandatory potato

Rezervd!

8 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 2 years ago.

8 years ago
Permalink

Comment has been collapsed.

howw soo?
Is there a universal format I'm missing?

I included 2 answers, depending on whether people are used to pre-test or post-test.

The rand() works just like JavaScript's Math.random();

8 years ago
Permalink

Comment has been collapsed.

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

8 years ago*
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 4 years ago.

8 years ago
Permalink

Comment has been collapsed.

Good job!
Comment on the thingy thing that the puzzle talked about to become whitelisted :)

8 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 4 years ago.

8 years ago
Permalink

Comment has been collapsed.

I don't get it.. what am I supposed to do in the puzzle?:S

8 years ago
Permalink

Comment has been collapsed.

find a**2
:)

8 years ago
Permalink

Comment has been collapsed.

Oh ok xDD

8 years ago
Permalink

Comment has been collapsed.

I like easy puzzles :D

8 years ago
Permalink

Comment has been collapsed.

Bump for programmed.

8 years ago
Permalink

Comment has been collapsed.

I've never seen two asterisks (**) before a constant in programming, so I'm out. No idea what it means.

8 years ago
Permalink

Comment has been collapsed.

It's an operation, like +, -, /, * (except not).

More info is in the puzzle hint.
Like multiplication, but more. :P

EDIT:
Calm down it's fixed :P

8 years ago*
Permalink

Comment has been collapsed.

And it applies to all languages? 'Cause I study C++ and I've never seen it.

8 years ago
Permalink

Comment has been collapsed.

I thought it was a pointer. I don't know what I'm doing

8 years ago
Permalink

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.

8 years ago
Permalink

Comment has been collapsed.

C++ fan here as well. double asterisks had me puzzled as well. had to google it. Got the correct answer in the end but still wondering about the purpose of the first line "int a=floor(rand())"

8 years ago
Permalink

Comment has been collapsed.

Me too, but he explained here what he intended for it to be.

8 years ago
Permalink

Comment has been collapsed.

Ah. Yes I see now. Kinda amusing in a way I guess.

8 years ago
Permalink

Comment has been collapsed.

I'm calm. :P Just trying to understand your code. Thanks for fixing it. :)

8 years ago
Permalink

Comment has been collapsed.

Please tell me the solution when this is over ;_;

8 years ago
Permalink

Comment has been collapsed.

okay :)

i believe you can solve it :D

8 years ago
Permalink

Comment has been collapsed.

I'll try again when I get home from scgool :O :)

8 years ago
Permalink

Comment has been collapsed.

Bump for solved :)

8 years ago
Permalink

Comment has been collapsed.

solved.bump("Thanks");

8 years ago
Permalink

Comment has been collapsed.

Thanks for the puzzle! That was fun. Wish we got more code-related puzzles around here.

8 years ago
Permalink

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.

8 years ago*
Permalink

Comment has been collapsed.

He's talking about C++ classes and objects.

8 years ago
Permalink

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.

8 years ago*
Permalink

Comment has been collapsed.

Thanks for the feedback! :D
I'll work on it next time.

8 years ago
Permalink

Comment has been collapsed.

bump, it was pretty easy :)

8 years ago
Permalink

Comment has been collapsed.

bump for solved

8 years ago
Permalink

Comment has been collapsed.

bump for solved, really easy :)

8 years ago
Permalink

Comment has been collapsed.

Bump.

8 years ago
Permalink

Comment has been collapsed.

happy cake day :)

8 years ago
Permalink

Comment has been collapsed.

Bump for solved :)

8 years ago
Permalink

Comment has been collapsed.

Fun little distraction. Thanks! :-)

8 years ago
Permalink

Comment has been collapsed.

What does function floor do?

Edit: Stupid me. It's a simple equation :/. Bumpity bump for solved!!

8 years ago*
Permalink

Comment has been collapsed.

lovely puzzle ^^ keep up the good job =3

8 years ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.