We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
But ,if we solve it by sorting it than compexity always be greater than O(N).
that is i was taking about,
thanks you for giving me idea about considering compexity without testcase in such problem ,thanks you again .
1)Can you give me some tip to start with DP and Complex Math problems ?
2)Where are from ?(state //college //city)
BTW my soln is as follow ,we also can use single int instead of array ,that i used here
Angry Professor
You are viewing a single comment's thread. Return to all comments →
But ,if we solve it by sorting it than compexity always be greater than O(N). that is i was taking about, thanks you for giving me idea about considering compexity without testcase in such problem ,thanks you again .