Practice: Reverse a String
Follow the step-by-step instructions to practice with pointers and strings.
We'll cover the following...
Introduction
In this practice session, we will maintain our theme of using two pointers to solve problems efficiently.
Problem statement
The task is to reverse a given string. We aren’t allowed to use extra memory. We’re also not allowed to use more than one loop, that is, the complexity should be ...