Google Interview Question

One was about number combinations while other was a graph problem.