1pub fn toposort(labels: Vec<usize>) -> Vec<usize> { 2 let k = *labels.iter().max().unwrap(); 3 4 labels.into_iter().map(|l| k - l).collect() 5}