05: Finding the 2nd highest number in an array

Requirements gathering Does the array allow duplicates? If duplicates are allowed, then do you need to report duplicates? For example, in {2,4, 6, 3, 6, 5}, is 6 or 5 the second highest? Analysis If duplicates are not allowed, sort…

Members Only Content

Free Trial | Log In | Register | Home

print

Why wait 5-10 when you can fast-track in 1-2 ?

open all | close all
Top