Blog Detail
World of BROCK
http://worldofbrock.blogspot.com/
You'll find here some algorithmic puzzles, tutorials... and stuff... solved interview questions, tips and tricks, basically everything that you'll ever need to know to get a job in IT.
Recent Posts
How to hack daily puzzles on www.gameknot.com
What better way of wasting two hours of your life then hacking a website? :) Actually what I'm going to show here is just a simple example of javascript function overriding, it doesn't even deserve the name "hack". The site is not very secured, but t...
How to generate random numbers in [1...7] from random numbers in [1...5]
Well known as a Google/Microsoft interview question, the following problem is actually really complicated to solve correctly, although it looks easy: Given a function which produces a random integer in the range 1 to 5, write another function which ...
Momentary break
M64FT7ZUTGK4 Been very busy the last few weeks. I will resume posting soon. ...
How to find the missing number from an array
This is what I've been asked at an interview at Microsoft (over the phone): An array of length N (for example N = 6) is given, containing all the elements from 1 to N, except one which is duplicated. So instead of having: 1: 1, 2, 3, ...
How to do integer partitioning
The problem statement: given a number N, for example 5, print all the partitions of this number, meaning: the sum of all possible number that add up to N. In this example: 1: 1+1+1+1+1 2: 1+1+1+2 3: 1+1+2+1 4: ...
How to find all possible words from a phone number
The problem statement: Most phone numbers these days are like 1-800-COOLSTUFF, which means you have to type 1-800-266578833 on your phone to dial. Given an array of numbers like "266578833" above, find all the words which could be formed from them. T...


Good information presented in a intelligible format
Posted: September 19th, 2009 | More Reviews From hello2 | Report This Comment