7 ms·The author may have written a brute force algorithm when a greedy solution would have worked :)by yodsanklai 5y agoThe author may have written a brute force algorithm when a greedy solution would have worked :)