New course! Every coder should learn Generative AI!
Try a free lesson0
How to find second largest no. in an array?
in c++
3 Answers
+ 5
If it contains unique values only:
print(sorted(list_name)[-2])
0
Sort it and pick the 2nd element.
Simple.
in c++