Max Points on a Line, Word Ladder II

Exercises from LeetCode, they are both accepted