Relative Content

Tag Archive for javalist

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.