Minimum Length of String After Deleting Similar Ends
Sajid Khan
Senior Front-End Engineer | Web Developer | JavaScript ES6 | TypeScript | ReactJs | NextJs | NodeJs | MongoDB
Please refer to LeetCode for the question details:
Intuition
We will use two pointers to solve this problem. Two pointer pattern is a handy tool and can help us in solving many simple-complex problems
Approach
Complexity
Code
Here are the performance metrics:
Please consider upvoting my solution if you found it helpful!x