首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
leetcode371专题
leetcode371 Sum Of Integers 不用加法计算两个整数的和
Description 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. 解法 思路: 首先不能用”+”、” - “符号,那么计算两个数的和也就只能用“位运算符”
阅读更多...