How to Reverse String and Reverse Array (Iterative and Recursive)

Опубликовано: 22 Октябрь 2024
на канале: Quoc Dat Phung
1,119
24

In this video, I will show you how to reverse Strings and Arrays using a for loop and then using recursion.

What is recursion? Recursion is a function that calls upon itself. Here, we write a function that calls upon itself and to reverse a string and reverse an array or a list using recursion. While it is easy to use a for loop or while loop to do this, it is important that you understand these recursion steps to have a strong foundation to learn more complex recursive algorithm in the future.

LIKE & SUBSCRIBE:
🔴 My Channel:    / quocdatphung  
🔴 My second channel:    / @purifynature8479