recca chao 的 gitHub page

寫一些技術文件,筆記,雜七雜八

View on GitHub

Problem 129

Description

Given a real number n, find the square root of n. For example, given n = 9, return 3.

Solutions

參考 leet code 連接

https://leetcode.com/problems/sqrtx/

假設題目如下

class Solution {
    fun mySqrt(x: Int): Int {
        
    }
}

參考解法