Choose and Swap | GFG | POTD

If we encountered distinct chars just swap all the occurrences those two chars and break the loop Make sure to watch the video till the end to have a better understanding of the problem and its full code walk-through! If this breakdown helped you see the pattern clearly, definitely drop a like and subscribe for more clean algorithm explanations..." Time Complexity : O(n) Space Complexity : O(1) #strings #dsa #manipulation #algorithms #interviewpreparations