Sollicitatievraag bij Zoho

Sort an array of strings

Antwoorden op sollicitatievragen

Anoniem

5 jul 2024

array = ["apple", "banana", "cherry", "date"] sorted_array = sorted(array) print(sorted_array)

Anoniem

30 jun 2024

Use the dictionary approach

3

Anoniem

5 jul 2024

array = ["apple", "banana", "cherry", "date"] sorted_array = sorted(array) print(sorted_array)