LeetCode Question · Jun 2016

Determine if given number is a perfect square? Can't use Math.Sqrt library function

2 upvotes 10,609 views 13 replies

Question Details

Write a function that takes an integer as input and returns true if it's a perfect square else false. public static bool IsPerfectSquare(int n) { } ex: Perfect squares = 16 (4x4), 25 (5x5)...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding