From 25a34b39267a91e43f61c2fc0306c8a04187557b Mon Sep 17 00:00:00 2001 From: Akshat Jain <68468062+Aj12345616@users.noreply.github.com> Date: Sun, 2 Oct 2022 18:27:14 +0530 Subject: [PATCH] Add files via upload Median of two sorted array using C++ --- Median of two sorted array.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Median of two sorted array.cpp diff --git a/Median of two sorted array.cpp b/Median of two sorted array.cpp new file mode 100644 index 0000000..0c44043 --- /dev/null +++ b/Median of two sorted array.cpp @@ -0,0 +1,30 @@ +double findMedianSortedArrays(vector& nums1, vector& nums2) { + int n1=nums1.size(); + int n2=nums2.size(); + if(n2right2){ + high=cut1-1; + }else{ + low=cut1+1; + } + } + return 0.0; + }