The TransCompilator

Solved LeetCode program · 266 of 1,000

#0367 · Valid Perfect Square

Easy Math chunk-06.md

Original English source

The number is 16. The root is 0. The spot is 1.
Repeat while spot times spot is at most number.
If spot times spot is number, set root to spot. Add 1 to spot.

If root is 0, show false, otherwise show true.

Open in Playground Browse all 1,000 problems

Expected stdout

true