Revert "refactor"

Reverts acprimer/LeetCode#4