package
0.0.0-20241209140624-9fce2a725d55
Repository: https://github.com/elven9/my-leetcode.git
Documentation: pkg.go.dev
# README
Two Sum II - Input Array Is Sorted
Solution Idx | Time Complexity | Space Complexity | Comment |
---|---|---|---|
1 | O(n^2) | O(1) | Bruteforce solution |
2 | O(nlogn) | O(1) | Sweep and Binary Search |