Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvimisra2798 committed Dec 26, 2020
1 parent 5835cb8 commit dd94547
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Algorithms/Sorting/Find the Median/solution.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import math
def main():
#input array size
testcase = int(input())
#input array elements
med = [int(i) for i in input().split()]
print(findmed(med))
#Output one integer, the median
def findmed(med):
med.sort()
if(len(med)%2 == 1):
Expand Down

0 comments on commit dd94547

Please sign in to comment.