Zoho interview question

Sort an array of strings

Interview Answers

Anonymous

Jul 5, 2024

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

Anonymous

Jun 30, 2024

Use the dictionary approach

3

Anonymous

Jul 5, 2024

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