Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 287 Bytes

69.x-的平方根.md

File metadata and controls

27 lines (20 loc) · 287 Bytes
title categories
x-的平方根
leetcode
leetcode题解
package main

import "math"

/*
 * @lc app=leetcode.cn id=69 lang=golang
 *
 * [69] x 的平方根
 */

// @lc code=start

func mySqrt(x int) int {

	return int(math.Sqrt(float64(x)))

}

// @lc code=end