Why is my code exceeding its time limit and showing no output?
Given a dictionary consisting of many roots and a sentence consisting of words separated by spaces, replace all the derivatives in the sentence with the root forming it. If a derivative can be replaced by more than one root, replace it with the root that has the shortest length.
Need to know what making my code going to TIme exceeding and showing no out put as preffered
I want get output=[a a b c]