← All problemsSign in

Counting Stars

Conscientia is organising Night sky hunt- An event to test the ability in identifying astronomical objects. Chef was interested in participating the hunt. The prelims round requires Chef to find the number of stars in a given string. He approaches you for the help. For a given string the task is to find the occurence (number of times) of all the stars (Find the star-database here --> star_data

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