Solutions to a few common algotrithm questions