Skip to content

Commit

Permalink
Create SolutionByDhaval.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dhavalpandey authored Oct 30, 2023
1 parent b7cbc6c commit 90f73b2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Divide and Conquer/Median of Two Sorted Array/SolutionByDhaval.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import statistics

len1 = int(input())
arr1 = list(map(int, input().split(" ")))
len2 = int(input())
arr2 = list(map(int, input().split(" ")))

arr = arr1 + arr2
arr.sort()

print(statistics.median(arr))

0 comments on commit 90f73b2

Please sign in to comment.