ADD: leetcode 29
MOD: MIN/MIN should equals to 1
ADD: leetcode 30, not finished