Two pointer method is used as an alternative to two nested loops. While two nested loops has the time complexity of O(n)^2, two pointer method has O(n). At each pass we do operations at beginning and end simultaneously.
-
Notifications
You must be signed in to change notification settings - Fork 0
khemssharma/leetcode
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Calmly practice DSA here...
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published