We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4361e8b commit 96ffdb6Copy full SHA for 96ffdb6
Java/0004_Median_of_Two_Sorted_Arrays.java
@@ -10,7 +10,7 @@ public double findMedianSortedArrays(int nums1[], int nums2[]) {
10
11
int nums1Low = 0;
12
int nums1High = nums1Len;
13
- // find the point where all left side numbers are smaller than right side numbers
+ // find the partition where all left side numbers of nums1 and nums2 are smaller than right side numbers
14
while (nums1Low <= nums1High) {
15
int nums1Partition = (nums1Low + nums1High)/2;
16
int nums2Partition = (nums1Len + nums2Len + 1)/2 - nums1Partition;
0 commit comments