Skip to content

Commit 41873d4

Browse files
authoredOct 23, 2023
Update 0004-median-of-two-sorted-arrays.rs
1 parent 5d4fb02 commit 41873d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎rust/0004-median-of-two-sorted-arrays.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version 1: focus on logic
1+
// Solution 1: focus on logic
22
impl Solution {
33
pub fn find_median_sorted_arrays(mut nums1: Vec<i32>, nums2: Vec<i32>) -> f64 {
44
for val in nums2 {
@@ -12,7 +12,7 @@ impl Solution {
1212
}
1313
}
1414

15-
// Version 2: focus on binary search
15+
// Solution 2: focus on binary search
1616
impl Solution {
1717
pub fn find_median_sorted_arrays(mut nums1: Vec<i32>, mut nums2: Vec<i32>) -> f64 {
1818
let total = nums1.len() + nums2.len();

0 commit comments

Comments
 (0)