Leetcode——第69题

来源:互联网 发布:工资算法 编辑:程序博客网 时间:2024/05/14 04:03

解法1:牛顿法:算法复杂度为O(log(x))

2、brute force:暴力求解,时间复杂度为O(sqrt(x))