Find Second Largest Element in an Array
Given an array of integers, find and return the second largest element. For example, given [1, 2, 3, 4, 5], the expected output is 4.
Asked at:
Goldman Sachs
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early March, 2026
Goldman Sachs
Mid-level
Given an array, return the second largest element in the array. [1,2,3,4,5] , output is 4
Hello Interview Premium
Your account is free and you can post anonymously if you choose.