编程语言
文章平均质量分 78
再也不买奶茶了
这个作者很懒,什么都没留下…
展开
-
深入理解按位异或运算符
小步不停注: 文章转自“http://kapok.blog.51cto.com/517862/129941” 参与运算的两个值,如果两个相应bit位相同,则结果为0,否则为1。 即: 0^0 = 0, 1^0 = 1, 0^1 = 1, 1^1 = 0 例如:10100001^00010001=10110000 按位异或的3转载 2014-03-05 22:19:07 · 962 阅读 · 1 评论 -
LeetCode - Median of Two Sorted Arrays
问题描述: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).原创 2014-05-05 14:33:36 · 1013 阅读 · 0 评论 -
判断二叉树是否为轴对称二叉树
据说是豌豆荚的一道面试题。原创 2014-04-25 21:22:14 · 1520 阅读 · 3 评论