摘要:
题目 代码class Solution {public: int missingNumber(vector& nums) { int result = nums.size(); for(int i=0;i<nums.size... 阅读全文
posted @ 2018-09-17 18:51
李正浩
阅读(99)
评论(0)
推荐(0)
摘要:
题目 代码class Solution {public: bool isValid(string s) { stack sta; for(auto i:s) { switch(i) { ... 阅读全文
posted @ 2018-09-17 18:47
李正浩
阅读(76)
评论(0)
推荐(0)
摘要:
题目 代码class Solution {public: vector> generate(int numRows) { vector> res; if(numRows==0) return res; fo... 阅读全文
posted @ 2018-09-17 18:46
李正浩
阅读(106)
评论(0)
推荐(0)
摘要:
题目 代码class Solution {public: uint32_t reverseBits(uint32_t n) { n=(n>>16)|(n>8)|((n&0x00ff00ff)>4)|((n&0x0f0f0f0f)>2)|((n&0x3333... 阅读全文
posted @ 2018-09-17 18:43
李正浩
阅读(113)
评论(0)
推荐(0)
摘要:
题目 代码class Solution {public: int hammingDistance(int x, int y) { int res=x^y; int num=1; int result=0; whil... 阅读全文
posted @ 2018-09-17 18:40
李正浩
阅读(131)
评论(0)
推荐(0)

浙公网安备 33010602011771号