## 7 stories

You have a tree data structure. Write an algorithm that given any two nodes in the tree, finds the node that is the closest common ancestor to them.

Given an HTML with messed up tag nesting, output the correct and unambiguous version of the HTML.

Given that a tree is made of only red or black nodes, return another tree that only has the paths of the original tree leading to a red node.

Reverse the order of the words in a String in-place.

Write an algorithm that takes a tree data structure and writes out all the elements in a breadth-first traversal order.

Write the algorithm that LinkedIn.com uses to tell you how many professionals you have access to.

You have trillions of URLs stored uniquely, without order, across numerous machines, each with a score. Find the 1000 URLs with the highest scores.