Search posts, tags, users, and pages
Amit singh
class Solution { int print2largest(int[] arr, int n) { int largest = Integer.MIN_VALUE; int secondLargest = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { if (arr[i] > largest) { secondLarges...
No responses yet.