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.
Set has already stored all of the array elements previously. Then there is a comparaison between each element of the array individidualy + the targeted value "K". So, if that sum is available within the elements inside of the set list, then it will increment.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Pairs
You are viewing a single comment's thread. Return to all comments →
Set has already stored all of the array elements previously. Then there is a comparaison between each element of the array individidualy + the targeted value "K". So, if that sum is available within the elements inside of the set list, then it will increment.