Skip to content

Commit 480de8a

Browse files
Merge pull request #1 from asm-dev/patch-1
Added solution
2 parents a793fa0 + 14af023 commit 480de8a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

solutions/009_Find_the_Runner_Up_Score.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,17 @@ if __name__ == '__main__':
9292
ordr = sorted(scores, reverse=True)
9393
print(ordr[1])
9494
```
95+
96+
97+
98+
## Solution 4
99+
100+
```
101+
def remove_n(list, n):
102+
new_arr = [num for num in list if num != n]
103+
return new_arr
104+
105+
arr = list(arr)
106+
new_arr = remove_n(arr, max(arr))
107+
print(max(new_arr))
108+
```

0 commit comments

Comments
 (0)