Sort Strings
Start Timer
0:00:00
Given a list of strings, write a function, sorting
from scratch to sort the list in ascending alphabetical order.
Notes:
- Do NOT use the built-in sorted
function
- Return the new sorted list, rather than modifying the list in-place
Bonus: Have your solution be .
Example:
Input:
array = ["apple", "cat", "banana", "zoo", "football"]
Output:
def sorting(array) -> ["apple", "banana", "cat", "football", "zoo"]
Recommended questions for you
Personalized based on your user activity, skill level, and preferences.
.
.
.
.
.
.
.
.
.
Comments