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.
Store all the array indices where the number is greater than k. From there, go on to check the number of subarrays which must contain atleast one of these numbers.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Number List
You are viewing a single comment's thread. Return to all comments →
Store all the array indices where the number is greater than k. From there, go on to check the number of subarrays which must contain atleast one of these numbers.