π Like & Subscribe: https://www.youtube.com/@AlgoJS?sub_confirmation=1
Business Inquiries: π
π§ [email protected]
π Hi I'm Brad, a software engineer at GitHub, AI expert, and founder of AlgoJS.
In this video, I walk through the two pointer technique how one can turn O(nΒ²) into O(n) using two indices that converge toward a solution.
Timestamps:
00:00 - Intro
00:20 - 4 steps
00:40 - Question 1
01:45 - Solution 1
02:20 - Question 2
04:20 - Solution 2
04:50 - Conclusion
#softwareengineering #datastructures #algorithm #twopointers