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.
- Prepare
- Algorithms
- Sorting
- Counting Sort 1
- Discussions
Counting Sort 1
Counting Sort 1
Sort by
recency
|
449 Discussions
|
Please Login in order to post a comment
MInha soluçao com ajuda rs
int [] freq = new int [100]; Arrays.fill(freq, 0);
for(Integer a : arr){ freq[a]++; }
List results = new ArrayList<>();
for(int i = 0; i < 100; i++){ results.add(freq[i]); }
}
My solution in C:
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )
JS