[NP] leetcode: word ladder