Irritating Queries
CodeChefOpen on judge ↗
Santanu Sir has just given a very simple task.He gives a string S which contains alphabets mainly(for details refer to constraints) and then randomly selects a character and asks you the number of occurrence of that character in the given string.Well initially it was easy until he said he will ask these several times. Input The first line of the input file contains a string S of length N. The
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.
Sign in to chat with the tutor and save your progress.
Sign in to start