Recca Chao 的 gitHub page

推廣網站開發,包含 Laravel 和 Kotlin 後端撰寫、自動化測試、讀書心得等。Taiwan Kotlin User Group 管理員。

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 {
        
    }
}

參考解法