ZOHO
Company
Programming
Arrays
(2,1,5,4,6) in the given array print the next largest number in that array for every element. 2->4 , 1->2, 5->6, 4->5 , 6-> 2)
Read Solution (Total 1)
-
- After ascending order
For loop
If(a[i]==given)
Print a[i+1] - 3 years agoHelpfull: Yes(0) No(0)
ZOHO Other Question