Chapter 2 — Reversing & Palindromes
Apply two pointers to strings: reversal in place and palindrome checking.
Reversing a string in place
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris non tortor a turpis fermentum porta.
|
|
Palindromes
A palindrome reads the same forwards and backwards. Use two pointers from both ends and compare as you walk inward.
|
|
Don’t forget to mark this chapter complete when you’re done.
Saved locally to your browser.