Code Zone
Friday, March 9, 2012
Two-pointer Technique
One slow-runner and the other fast-runner.
https://leetcode.com/articles/two-pointer-technique/
Classic Problems:
Remove Duplicates from Sorted Array
Two Sum II - Input array is sorted
Reverse Words in a String II
Rotate Array
Valid Palindrome
Container With Most Water
Product of Array Except Self
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment