JobsJob TrackerJob alerts

CustomerXPs · 7 questions

All 7Coding 7
  • Implement two stacks in a single arrayCoding
  • Print numbers greater than 10 equal to sum of digit factorialsCoding
  • Find the middle element of a linked listCoding
  • Sort a stack using another empty stackCoding
  • Find height of a tree using getchild functionCoding
  • Perform level order traversal on a treeCoding
  • Find nth most repeated element in O(nlogn) timeCoding
← CustomerXPs questions
  1. Interview questions
  2. CustomerXPs
  3. Find nth most repeated element in O(nlogn) time
Coding

Find nth most repeated element in O(nlogn) time

Filed under CustomerXPs

The question

Given an array of numbers, find the nth most repeated element and its frequency in O(nlogn) time complexity.

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

Related CustomerXPs questions

  • Implement two stacks in a single array
  • Print numbers greater than 10 equal to sum of digit factorials
  • Sort a stack using another empty stack
  • Find height of a tree using getchild function
  • Perform level order traversal on a tree
← Perform level order traversal on a tree

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