Cherry and Pyramid
Cherry has a string $S$ consisting of lowercase English letters. Using this string, he formed a pyramid of infinite length with certain rules: 1. $N$-th row of pyramid contains $N$ characters. 2. Each row of pyramid begins with the first character of the string. 3. The subsequent characters of the row are appended to the string in cyclic fashion, until the size of string for that Row is reach
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