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.
What is meant by smallest and next smallest element in sub-array?
Like as in given example when array is [9,6,3,5,2]
They took smallest elements as 9 and 6 instead of 2 and 3.Why?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
AND xor OR
You are viewing a single comment's thread. Return to all comments →
What is meant by smallest and next smallest element in sub-array? Like as in given example when array is [9,6,3,5,2] They took smallest elements as 9 and 6 instead of 2 and 3.Why?