#two-pointers
Read more stories on Hashnode
Articles with this tag
Intuition Sort the array and check if the start and end of the array match. If not, increment or decrement accordingly. Approach First sort the array....
Intuition Find position of ch (if any) then use two pointers to swap characters until string is reveresed from beginning to index of ch Approach Start...