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.
Hi @jporcelli, I am stuck at the question. Can you explain how did u solve the question? I am checking every number with the numbers following it with complexity O(n^2).For some cases i am getting right answer but wrong for others.What is the key point in question?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Problem solving
You are viewing a single comment's thread. Return to all comments →
Hi @jporcelli, I am stuck at the question. Can you explain how did u solve the question? I am checking every number with the numbers following it with complexity O(n^2).For some cases i am getting right answer but wrong for others.What is the key point in question?