right algorithm, but too slow to work it out, TODO
right algorithm, but too slow to work it out, TODO

python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution