Add solution to "valid palindrome" and "word ladder".