@tachyon77 Done. Your code should get AC now.
Better show some actual solution(s) demonstrating the issue(s) so this can be properly looked into.
Ack, apparently there is an O(N) algorithm, after seeing some thread titles here.
I first posted in the general forum, couldn't find a way to reach the forum for this question.
No one has replied
Disabled Categories are greyed out
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.