JobsJob TrackerJob alerts

Fiberlink ยท 13 questions

All 13Coding 8
  • Print all distinct palindromic sub-stringsCoding
  • Singleton Pattern
  • Print repeating numbers in an arrayCoding
  • Exception Handling
  • Testing multi-threading with JUnit
  • Grid boundary removal puzzle
  • Frequency count with alphabetical sortingCoding
  • Bridge and Torch Problem
  • Find Student Rank from Marks ArrayCoding
  • Find Floor and Position from Room NumberCoding
  • Make Leaf Node the Root of Binary TreeCoding
  • Print Older Version of QueueCoding
  • Generate Six-Digit Numbers on KeypadCoding
โ† Fiberlink questions
  1. Interview questions
  2. Fiberlink
  3. Frequency count with alphabetical sorting
Coding

Frequency count with alphabetical sorting

Filed under Fiberlink

The question

Given a string like 'gggggaaannnnnnnwwww', output 'n7g4w4a3'. Characters with the same frequency must be printed in alphabetical order.

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

Related Fiberlink questions

  • Print all distinct palindromic sub-strings
  • Print repeating numbers in an array
  • Find Student Rank from Marks Array
  • Find Floor and Position from Room Number
  • Make Leaf Node the Root of Binary Tree
โ† Grid boundary removal puzzleBridge and Torch Problem โ†’

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