Realize all the puzzles of leetcode.