- 博客(6)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 leetcode刷题, 总结,记录,备忘 171
leetcode题目171 Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2
2015-05-30 22:26:27 333
原创 leetcode刷题。总结,记录,备忘。168
leetcode168题。 先进行取模计算,得到最后一个位的字符,然后再进行求商运算,获得前面位的字符值,从右向左添加至结果字符串中。考虑到52应该是AZ,所以必须减去1,再进行求商运算,才能得到第一位是A class Solution { public: string convertToTitle(int n) { string result; char ch;
2015-05-30 00:03:58 376
原创 leetcode刷题。总结,记录,备忘 191
leetcode191题,求一个32无符号整数中位为1的个数,2种方法,最简单的就是使用c++中bitset容器,直接使用count()这个成员函数即可 class Solution { public: int hammingWeight(uint32_t n) { bitset bu(n); return bu.count();
2015-05-24 21:30:17 373
原创 leetcode刷题。总结,记录,备忘 100
leetcode 100题是判断2个二叉树是否相同 Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the
2015-05-23 22:13:06 383
原创 leetcode刷题。总结,记录,备忘 104
leetcode104题,计算二叉树的深度。 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 第一种方法采用递归,以遍历到
2015-05-23 21:45:53 374
原创 leetcode刷题,总结,笔记,备忘。136
从通过率最高的题目开始136 Single Number 找出数组里唯一一个只出现一次的数字。通过这个题目知道位异或运算符连续异或2个相同的数字得到0。 /*Given an array of integers, every element appears twice except for one. Find that single one. *Note: *Your algorithm
2015-05-22 22:33:58 458 2
请问IVS_SDK_Login登录失败返回错误码为119101305是什么错误
2016-02-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人