riddle

Riddle: The Square Puzzle

Last couple of days, I have refrained myself from master's studies and have been focusing on this (seemingly simple) puzzle: There is this 10*10 grid which constitutes a square of 100 available places to go. The aim is to start from a corner and traverse through all the places with respect to some simple "traverse rules" and reach n...

recursion: cut array of integers in two parts of equal sum - in a single pass

Using recursion, find an index that cuts an array in two parts so that both parts have equal sum. Cut means to cut like with a knife. All the cells with index <= to the result must be equal in their sum to the all the cells with index > to the result. No cells can be left off or be part of both sides. The arrays contains arbitrary inte...

Frequently Asked Riddles in Job Interviews

Were you asked any logic riddles in job interviews? Are you usually asking riddles in job interviews? What are they, and what are the answers? I was asked once how can you divide evenly 5 apples to 6 people without dividing any apple to 1/6 (or 1/12 or 1/18 etc.). (Would love to hear answers in the comments, I'm not sure my answer was ...

guess what 0x564c is?

when i read linux kernel source, i found one line says: #define NCP_SUPER_MAGIC 0x564c /* Guess, what 0x564c is :-) */ (564c)16 = (22092)10 = (53114)8 = (101011001001100)2 Wolfram|Alpha tells us that 22092 = 2^2 * 3 * 7 * 263 = 43 * 2^9 + 76 ok , so do any body have any ideas of this riddle? btw, this code appea...

Show notification every step of difference between two values (Math Question)

I have to answer this question that seems a riddle ... I don't know if there's a real solution or it's impossible... Questions : Having two double values, one is the total amount of money in the safe, the other is threshold of maximum money recommended in the safe For example: recommended value of money (threshold) : $1,500 Total amou...