Interview question of the issue #307 of rendezvous with cassidoo.
Given an integer n
, return true
if it's a perfect square AND when reversed, is still a perfect square.
Example:
> reversedSquares(9)
> true
> reversedSquares(441)
> true
> reversedSquares(25)
> false
Just pnpm i
to install all dependencies and then pnpm t
to run the tests!