8000 GitHub - khemssharma/leetcode at 981eaa9959c11d57c899aa5865ca1add68eb0611
[go: up one dir, main page]

Skip to content

khemssharma/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Solutions

Two Pointer, array.js

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.

Releases

No releases published

Packages

No packages published
0