← All problemsSign in

Circle Square Sequence

For a given circle there exists a square that can be inscribed in it and has maximum area and similarly for a square you have such circle. See the figure below. Now you are given a initial shape (circle or square). And a string representing the sequence of shapes inscribed under the previous one where s represents square and c represents circle. Input - One line containing initial shape fol

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