2020年9月14日
摘要: 普通求解幂的方法: 1 public int power(int a,int b){ 2 int res = 1; 3 for (int i = 1; i <= b ; i++) { 4 res *= a; 5 } 6 return res; 7 } 是b个a累乘的结果,时间复杂度为O(n)。 而快 阅读全文
posted @ 2020-09-14 20:08 含光Aries 阅读(237) 评论(0) 推荐(0) 编辑