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.

761 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?

709 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.

776 views Amin A.
Illustration

How many binary tree topologies are possible given n nodes?

773 views Amin A.

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

710 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?

729 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?

703 views Amin A.