We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9765f44 commit a19442fCopy full SHA for a19442f
Java/0004_Median_of_Two_Sorted_Arrays.java
@@ -13,7 +13,7 @@ public double findMedianSortedArrays(int nums1[], int nums2[]) {
13
// find the partition where all left side numbers of nums1 and nums2 are smaller than right side numbers
14
while (nums1Low <= nums1High) {
15
// if the total length of two arrays is even, the number of left side numbers == the number of right side numbers
16
- // if the total length of two arrays is odd, the number of left sisde numbers + 1 == the number of right side numbers
+ // if the total length of two arrays is odd, the number of left side numbers + 1 == the number of right side numbers
17
int nums1Partition = (nums1Low + nums1High)/2;
18
int nums2Partition = (nums1Len + nums2Len + 1)/2 - nums1Partition;
19
0 commit comments