Exercise: Integer Square Root
Challenge yourself with an exercise in which you'll have to return the largest integer whose square is less than or equal to the given integer.
We'll cover the following
Problem
You are required to write a function that takes a non-negative integer, k
, and returns the largest integer whose square is less than or equal to the specified integer k
.
Let’s have a look at some examples:
Get hands-on with 1400+ tech skills courses.