Skip to content

add median of two sorted array #9386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 4, 2023
Merged
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 2, 2023
commit 8981a8e1b61e3a068a7e789f18c64154a4de8ae6
1 change: 1 addition & 0 deletions data_structures/arrays/median_two_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def find_median_sorted_arrays(self, nums1: list[int], nums2: list[int]) -> float
middle2 = merged[total // 2]
return (float(middle1) + float(middle2)) / 2.0


if __name__ == "__main__":
import doctest

Expand Down