Chef and Ridges
We have a rectangular piece of cardboard with width $1$ (its height is not important). We are going to fold it in the following way: - pick up the right side of the piece of cardboard and move it to the left until it touches the left side - this way, a smaller piece of cardboard with width $1/2$ is created; if we unfolded it, we could see a vertical ridge formed in the middle - pick up the left si
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