Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 340 Bytes

Sqrt(x).md

File metadata and controls

21 lines (16 loc) · 340 Bytes
/**
  Problem URL : https://leetcode.com/problems/sqrtx/submissions/
  Description :
    Given a non-negative integer x, compute and return the square root of x.
  Difficulty : Easy
  Language : C#
  Category : Algorithms
*/

public class Solution 
{
    public int MySqrt(int x) 
    {
        return (int)Math.Sqrt(x);
    }
}