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.
This will not work, there is one element which is 10^9 in any of the arrays and k = 100 and all the other elements are 0 this solution will return YES but the answer should be NO.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Permuting Two Arrays
You are viewing a single comment's thread. Return to all comments →
This will not work, there is one element which is 10^9 in any of the arrays and k = 100 and all the other elements are 0 this solution will return YES but the answer should be NO.