7 stories

You are given the data set of all Google crawled URLs on the Internet -- that's a very large set. Write an algorithm to find the median URL length.

532 views Amin A.

Seven people are blindfolded and given unique colored hats at a roundtable. How should they cooperate for at least one to guess her own color?

476 views Amin A.

I take n consecutive integers, toss one of them out and mix up the remaining n-1 integers as completely unsorted. Find the missing integer.

499 views Amin A.

How many binary tree topologies are possible given n nodes?

528 views Amin A.

You are given n, a positive integer. Return true if n is a prime number, and false if it's not.

475 views Amin A.

An employer hires you to work for 7 days and has a gold bar with 7 segments to pay you with. How do you get them to not break it to pieces?

483 views Amin A.

You are given eight balls that look exactly the same, and a balance to weigh them against each other. Find the odd ball by weighing only twice?

479 views Amin A.