The TransCompilator

Solved LeetCode program · 323 of 1,000

#0441 · Arranging Coins

Easy Math chunk-07.md

Original English source

The coins is 5. The remaining is coins. The rowcount is 0. The need is 1.
Repeat while remaining is at least need.
Subtract need from remaining. Add 1 to rowcount. Add 1 to need.

Show rowcount.

Open in Playground Browse all 1,000 problems

Expected stdout

2