update word-break-ii and flatten-binary-tree-to-linked-list