Loading...
Is this your company?
Print the second largest element in array?
Anonymous
use by sorting or naive approach.
First we take an arr[] elements Ex: arr[]={1,2,31,51,5,6}; Than take a two variables for comparison Use foreach function Apply the if(x>large) { Second=firstlarge firstlarge=x } if(firstlarge==second ||( x>second && x
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.