Two pointers is a common coding technique to solve some algorithm problems, not all, but many algorithm problems can be solved by using it. To… Read More »Solve All Algorithm Problems – using Two Pointers technique
Solve All Algorithm Problems
Is there a way to solve all algorithm problems? No, but we can learn more coding techniques to make it easy. Like two pointers, hashtable/dictionary are all very common techniques for solving algorithm coding interview questions. For example Two Sum question can be solved in O(n) by using a hashmap.
More at XAlgorithm