Sectionย 1. Chapterย 16
single
Challenge: Reverse Playlist
Swipe to show menu
Task
Swipe to start coding
Reverse the order of songs in a playlist represented by a string array.
- Swap the first element with the last, the second with the second-to-last, and so on, until the entire array is reversed.
- The function must modify the original array so that its elements appear in reverse order.
Solution
Everything was clear?
Thanks for your feedback!
Sectionย 1. Chapterย 16
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat