You are viewing a single comment's thread. Return to all comments →
A rust solution:
fn countingSort(arr: &[i32]) -> Vec<i32> { arr.iter() .fold(vec![0; 100], |mut acc, &x| { acc[x as usize] += 1; acc }) }
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
A rust solution: