题目描述: 不用+,-求两个数的和 原文描述: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example: Given a = 1 and b = 2, return 3. 方法一:用位运算模拟加法 思路1: 异或又被称其为“模2加法
Implement pow(x, n). 幂运算 Calculates x raised to the power of y. Analysis: If we just use the normal way of calculation, when face 1 to the power of 10000, the computation complexity is too high.