You are viewing a single comment's thread. Return to all comments →
I think this solution fails in following case (which seems to fit in problem input constraints)
d=1 arr=[2, 2, 3, 4, 4]
i would expect the result to be 4.
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Triplets
You are viewing a single comment's thread. Return to all comments →
I think this solution fails in following case (which seems to fit in problem input constraints)
i would expect the result to be 4.