implement it right by myself, very good, but not very elegant, need read more elegant code. TODO
implement it right by myself, very good, but not very elegant, need read more elegant code. TODO

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