Bit Manipulation
文章平均质量分 54
你看见我的代码了么
愿世界没有bug
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Bit Manipulation
Bit ManipulationAnalysis 恋爱不值得,我心理只有paper—— [九月对我好一点~]这是一个记录Bit Manipulation的笔记啦~Some algorithms based on bitwise operations:1. if x is a power of 2 then x & (x-1) will be 0bool ...原创 2018-09-03 11:32:59 · 307 阅读 · 0 评论 -
[leetcode]260. Single Number III
[leetcode]260. Single Number IIIAnalysis 心态奶茶妹妹~—— [马云爸爸恐成最大赢家 哈哈哈]Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly ...原创 2018-09-03 12:02:03 · 173 阅读 · 0 评论 -
[leetcode]477. Total Hamming Distance
[leetcode]477. Total Hamming DistanceAnalysis等国庆等国庆!!!!!—— [每天刷题并不难]The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Now your ...原创 2018-09-27 10:59:36 · 178 阅读 · 0 评论 -
[leetcode]318. Maximum Product of Word Lengths
[leetcode]318. Maximum Product of Word LengthsAnalysis要加油鸭。。。—— [每天刷题并不难。。。]Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not sh...原创 2018-10-16 14:55:42 · 166 阅读 · 0 评论 -
[leetcode]137. Single Number II
[leetcode]137. Single Number IIAnalysis唉 感觉应该GG了,还是好好刷题看论文吧—— [每天刷题并不难0.0]Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find...原创 2018-12-04 10:23:13 · 205 阅读 · 0 评论 -
[leetcode]289. Game of Life
[leetcode]289. Game of LifeAnalysis2019年还没见过太阳,等一个晴天!!!—— [每天刷题并不难0.0]According to the Wikipedia’s article: “The Game of Life, also known simply as Life, is a cellular automaton devised by the ...原创 2019-01-11 11:41:07 · 191 阅读 · 0 评论
分享