Wrond editorial please check


#1

Wrong editorial provided for c++.(others i haven’t checked).
i/p : 3 abab abc abcd
o/p : 42
correct : 28
because for abab-3 or 7 unit,abc-2 unit and abcd-7 unit
hence minimum time =28 unit if (abab-7 unit). but for 2nd option ( abab-3) unit it will take 42 unit.