I'm trying to figure out how to modify the n greatest elements of an array without modifying their position. For example, suppose I have an array of ints gr
I'm trying to figure out how to modify the n greatest elements of an array without modifying their position. For example, suppose I have an array of ints gr