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.
My solution works fine on TestCase0 but it fails all the other tests. I downloaded TestCase1 input and output and on review found that the output is incorrect. The first few elements of output are- '- - - - - - - - - pq qy uz eb fo'. However, 'eb' is 104th element in the input and in the first half of a 1000 element array and therefore, should be replaced by a '-'. There are other smiliar discrepencies as well. Am I missing something?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Full Counting Sort
You are viewing a single comment's thread. Return to all comments →
My solution works fine on TestCase0 but it fails all the other tests. I downloaded TestCase1 input and output and on review found that the output is incorrect. The first few elements of output are- '- - - - - - - - - pq qy uz eb fo'. However, 'eb' is 104th element in the input and in the first half of a 1000 element array and therefore, should be replaced by a '-'. There are other smiliar discrepencies as well. Am I missing something?