sammcneely / vector_challenge Goto Github PK
View Code? Open in Web Editor NEWA challenge I set to practice working with rust vectors and HashMaps. One function takes a sorted vector of integers and get the median value of the list. The other fucntion takes a vector and returns a vector of tuple(s) first being the mode and the second being the number of occurences.