524 Longest Word in Dictionary through Deleting
1. Question
Input: s = "abpcplea", d = ["ale","apple","monkey","plea"]
Output: "apple"Input: s = "abpcplea", d = ["a","b","c"]
Output: "a"2. Implementation
3. Time & Space Complexity
Last updated