Hi!!!
Solved Problem (189 Rotated Array) on LeetCode today:
Problem: Rotate an array k steps to the right.
Trick: Just use reverse 3 times ✨
Steps:
1. Reverse the whole array
2. Reverse the first k elements
3. Reverse the rest
Aug 20, 2025 · 6:13 PM UTC

