Fill the Blanks
There is a string $S$ of size $N$ consisting of numbers between $0$ and $9$, and some blanks represented by $?$. Let $M$ be the number of blanks. Then, the following process repeats $M$ times : - A uniformly random number $X$ between $0$ and $9$ is generated. - You choose $i$ such that $S_i$ is blank and change $S_i$ to $X$. You want to maximize the final value of the string $S$ at the end o
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