#algorithms
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...
Intuition Since both arrays are sorted, we can find the minimum common value by iterating from left to right with two pointers. Approach Initialize...