JobsJob TrackerJob alerts

EagleView · 14 questions

All 14Coding 13
  • Find the second maximum elementCoding
  • Postorder traversal of a treeCoding
  • Connect adjacent nodes at same levelCoding
  • Divisibility of n! by 10^kCoding
  • Valid ParenthesesCoding
  • Max Area of IslandCoding
  • Detect Cycle in Directed GraphCoding
  • Reverse Words in StringCoding
  • Triplet SumCoding
  • Second Largest SalaryCoding
  • Min Cost PathCoding
  • Dynamic Programming and Bitmasking Coding TestCoding
  • Implement stack from scratch and count islandsCoding
  • JavaScript host address and browser working
← EagleView questions
  1. Interview questions
  2. EagleView
  3. Find the second maximum element
Coding

Find the second maximum element

Filed under EagleView

The question

Find the second largest element in an array. Candidate optimized from O(N log N) to O(N).

No write-up yet. Related questions below have one.

Related EagleView questions

  • Postorder traversal of a tree
  • Connect adjacent nodes at same level
  • Divisibility of n! by 10^k
  • Dynamic Programming and Bitmasking Coding Test
  • Implement stack from scratch and count islands
Postorder traversal of a tree →

Collected from public candidate posts and coding forums. Updated Nov 2026.