Math.sqrt


  • 0
    L

    Given problem statement, why shouldn't we simply do
    public class Solution {
    public int mySqrt(int x) {
    return (int) Math.sqrt(x);
    }
    }
    ?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.