A drawing game
For a non-empty array $C$ containing positive integers, let $B$ be a [subsequence](https://en.wikipedia.org/wiki/Subsequence) of array $C$ of size $M$ $(1 \leq M \leq |C|)$. We are going to play a drawing game based on the sequence $B$: - Select $M$ points with **positive integer coordinates** on the $XY$ $-$ plane such that the points $(B_i, 0)$, $(0, B_i)$ and the $i^{th}$ selected point are [c
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