← All problemsSign in

Can You Help Sam

Sam is member of Knight's Watch. He is assigned to maintain the Database for all Knight Watch member's.One day his Lord Commander (Jon's Snow) came to Sam's room. He wants to check about Sam's work. So he will ask M questions: Question can we two type!! TYPE 1 : Find the frequency of character having Kth maximum frequency in given id. TYPE 2 : Find the frequency of character having Kth minimum

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start