← All problemsSign in

Z And O

Sayantan's girlfriend loves similar triangles and visiting a zoo. So, he decides to gift her some similar words corresponding to word "zoo". A word S1 is said to be similar to S2 if the characters of S1 appear in S2 and the ratio of the occurrence of each character is the same for both the words. For example, words such as "zzoooo" and "zzzoooooo" are similar to the word "zoo" but not the words su

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