Re:On a Great Interview Question
by behdad on Wednesday April 12, 2023 @07:28PM
(#35548528)
Consider the string "thereis", and the dictionary {"there", "is"}. The greedy algorithm fails.
[ Parent
| on HN ]
My bad. The dictionary should be {"the", "there", "is"}.
Re:On a Great Interview Question
by whiddershins on Wednesday April 12, 2023 @11:58PM
(#35550756)
I am now getting that I didn’t understand what you meant by greedy.