# Tag Info

Accepted

List of improvements I would make: I'm uncertain why you use Arc::clone(...), just use .clone() directly. Same for ...
• 301

### Sort and search vectors by different criteria

Unnecessary sorting of data You should be able to find the desired items in $\mathcal{O}(N)$ time without needing to sort the container multiple times. You can just linearly go through the items in ...
• 32.4k

### Find first and last matches on a sorted list

Binary search This should be a binary search as that is the expected algorithm. Why? because the array is sorted. Your function does not take advantage of the fact that the elements are sorted. ...
• 19.9k
Accepted

### Partitioning a list so that even numbers appear before odd numbers

welcome to the Rust community! Your code is already quite idiomatic. You may use an unsafe and unstable feature to improve efficiency, swap_unchecked. It's only ...
• 1,209