String and Triplets
CodeChefOpen on judge ↗
As we know the lockdown gets extended till 3rd May. Tanuj and Sudarshan both are getting bore in the house. After playing ludo and carrom for a long time they wanna play another game. So, Tanuj has a different game for Sudarshan. Tanuj gives a string to Sudarshan which consist of only 3 type of characters that is $'A'$, $'B'$ and $'C'$. Now Sudarshan has to find the number of triplets $(i,
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