← All problemsSign in

Binary Inscription

Given a binary string $S$ consisting of only 1’s and 0’s where 1 represents a **Square** and 0 represents a **Circle**. The *diameter of the circle* and the *side of the square* must be any *integer* (obviously > 0) . You will have to **perfectly inscribe** (as shown in the example below) the respective geometric figure at $S$$i+1$ inside of $S$$i$ where $i$ $\epsilon$ $[0,N-2]$, **if it is possib

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