LeetCode
随心而至
大道至简
展开
-
Bit Manipulation - Bitwise AND of Numbers Range
给出区间[m, n],其中0 <= m <= n <= 2147483647,返回这个区间的所有整数相与的结果原创 2015-08-12 11:23:34 · 475 阅读 · 0 评论 -
Two Pointers - Stack - Trapping Rain Water
两个指针、栈。原创 2015-09-04 16:00:00 · 921 阅读 · 0 评论 -
Bit Manipulation - Single Number I, II, III
落单的数。数组中的数两两出现,只有一个出现了一次,把它找出来。数组中的数三三出现,只有一个出现了一次,把它找出来。数组中的数两两出现,只有两个分别出现了一次,把它找出来。mn + 1,通解。原创 2015-08-20 18:40:20 · 626 阅读 · 0 评论 -
Trie
Trie 树。原创 2015-09-03 18:20:14 · 533 阅读 · 0 评论 -
Stack - Simplify Path
Given an absolute path for a file (Unix-style), simplify it.原创 2015-09-04 15:32:08 · 521 阅读 · 0 评论 -
Majority Element && Majority Element II
查找数组的多数元素原创 2015-08-15 11:06:58 · 4553 阅读 · 0 评论 -
Bit Manipulation - Power of Two
判断一个数是不是2的幂次方原创 2015-08-12 21:56:53 · 571 阅读 · 0 评论 -
Bit Manipulation - Reverse Bits
按位逆置一个32位无符号整型数原创 2015-08-13 15:38:12 · 521 阅读 · 0 评论 -
Bit Manipulation - Number of 1 Bits
计算无符号整型中二进制1的数目原创 2015-08-13 11:20:30 · 548 阅读 · 0 评论 -
Bit Manipulation - Subsets
输入数组,返回数组的幂集原创 2015-08-12 10:47:07 · 814 阅读 · 0 评论 -
Bit Manipulation - Repeated DNA Sequences
DNA序列由A、C、G和T构成,从一串序列中找出长度为10的重复出现的子串原创 2015-08-12 10:50:45 · 496 阅读 · 0 评论 -
Stack - Min Stack
Min Stack. Min Stack with only one Stack. Max Queue.原创 2015-09-06 13:44:49 · 628 阅读 · 0 评论