Tag: array
-
How to find the leader numbers in an array in the forward direction
This is the second solution to find the leader numbers in an array in the forward direction. An element is leader if it is greater than all the elements to its right side. And the rightmost element is always a leader
-
How to find the leader numbers in an array from the reverse direction
This is the first solution to find the leader numbers in an array from the backward direction. An element is leader if it is greater than all the elements to its right side. And the rightmost element is always a leader
-
How to find first and second biggest numbers in an array of integers
This is the first solution to find the first and second biggest numbers from the given array of integers, without using any built in methods.
