Skip to content

Latest commit

 

History

History

307-reversedSquares

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

reversedSquares

Interview question of the issue #307 of rendezvous with cassidoo.

The Question

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

Installing & Running

Just pnpm i to install all dependencies and then pnpm t to run the tests!