class Solution {
public:
int mySqrt(int x) {
return floor(sqrt(x));
}
};
'Problem Solving > 리트코드(leetcode)' 카테고리의 다른 글
| Determine if String Halves Are Alike (0) | 2022.01.16 |
|---|---|
| Valid Perfect Square (0) | 2022.01.16 |
| Self Dividing Numbers (0) | 2022.01.16 |
| Power of Four (0) | 2022.01.16 |
| Lemonade Change (0) | 2022.01.16 |