You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -270,6 +270,7 @@ Your ideas/fixes/algorithms are more than welcome!
270
270
|170|[Two Sum III - Data structure design](https://leetcode.com/problems/two-sum-iii-data-structure-design/)|[Solution](../master/src/main/java/com/stevesun/solutions/TwoSumIIIDataStructureDesign.java)| O(n)|O(n)| Easy
|167|[Two Sum II - Input array is sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Solution](../master/src/main/java/com/stevesun/solutions/_167.java)| O(logn)|O(1) | Easy|
273
274
|165|[Compare Version Numbers](https://leetcode.com/problems/compare-version-numbers/)|[Solution](../master/src/main/java/com/stevesun/solutions/CompareVersionNumbers.java)| O(n)|O(1) | Easy|
Copy file name to clipboardExpand all lines: src/main/java/com/stevesun/solutions/_167.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
importcom.stevesun.common.utils.CommonUtils;
4
4
5
5
/**
6
+
* 167. Two Sum II - Input array is sorted
7
+
*
6
8
* Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.
7
9
8
10
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are not zero-based.
@@ -13,7 +15,7 @@ The function twoSum should return indices of the two numbers such that they add
0 commit comments