JobsJob TrackerJob alerts

Zebra Technologies ยท 11 questions

All 11Coding 8Low-Level Design 1Behavioral 1
  • MongoDB conceptsLow-Level Design
  • Find max and second max elementCoding
  • Docker and Kubernetes concepts
  • Offline Written MCQ TestCoding
  • DBMS, Java, Pointer Errors, and Linked List Loop DetectionCoding
  • Managerial Situational and Background DiscussionBehavioral
  • Check if an array contains all elements of a given rangeCoding
  • Write your own atoi()Coding
  • Reverse a linked listCoding
  • Minimum time required to rot all orangesCoding
  • Majority ElementCoding
โ† Zebra Technologies questions
  1. Interview questions
  2. Zebra Technologies
  3. Find max and second max element
Coding

Find max and second max element

Filed under Zebra Technologies

The question

Find the maximum and second maximum element in an array without using sorting or built-in functions, with O(n) time and O(1) space complexity.

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

Related Zebra Technologies questions

  • Offline Written MCQ Test
  • DBMS, Java, Pointer Errors, and Linked List Loop Detection
  • Check if an array contains all elements of a given range
โ† MongoDB conceptsDocker and Kubernetes concepts โ†’

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