Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
How to find second largest no. in an array?
in c++
3 Antworten
+ 5
If it contains unique values only:
print(sorted(list_name)[-2])
0
Sort it and pick the 2nd element.
Simple.