Leetcode
文章平均质量分 73
zhanghuanlucy
这个作者很懒,什么都没留下…
展开
-
371. Sum of Two Integers(Leetcode)
题目: 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. 思路: 位运算 假设a=010010, b=100111, 则a^b = 110原创 2016-07-04 15:29:50 · 529 阅读 · 0 评论 -
2. Add Two Numbers(Leetcode)
题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it原创 2016-07-04 18:18:00 · 335 阅读 · 0 评论