From 9aff1459e7d4ce6771b86d08b6bac70ecb99d57c Mon Sep 17 00:00:00 2001 From: Sayan Mondal <109960410+Technight27@users.noreply.github.com> Date: Fri, 4 Nov 2022 23:29:52 +0530 Subject: [PATCH] Update 009_Find_the_Runner_Up_Score.md --- solutions/009_Find_the_Runner_Up_Score.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/solutions/009_Find_the_Runner_Up_Score.md b/solutions/009_Find_the_Runner_Up_Score.md index 456728d..296fb36 100644 --- a/solutions/009_Find_the_Runner_Up_Score.md +++ b/solutions/009_Find_the_Runner_Up_Score.md @@ -106,3 +106,19 @@ arr = list(arr) new_arr = remove_n(arr, max(arr)) print(max(new_arr)) ``` + +##Solution 5 +... +if __name__ == '__main__': + n = int(input()) + arr = map(int, input().split()) + l=[] + l=list(arr) + l.sort(reverse=True) + a=l[0] + for i in range (1,n): + if l[i]