Sorting

Sorting a list of items into ascending or descending order can help either a human or a computer find items on that list quickly, perhaps using an algorithm like binary search. Most Programming languages have built-in sorting methods. It works on arrays of numbers, or even on arrays of strings:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy