- 博客(6)
- 资源 (5)
- 问答 (3)
- 收藏
- 关注
原创 LeetCode刷题笔记:缺失数字
Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from the array. Example 1: Input: [3,0,1] Output: 2 Example 2: Input: [9,6,4,2,3,5,7,0,1] ...
2018-09-04 20:41:46 358 1
原创 LeetCode刷题笔记:有效的括号
Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of ...
2018-09-04 20:10:14 366
原创 LeetCode刷题笔记:帕斯卡三角形
Given a non-negative integer numRows, generate the first numRows of Pascal’s triangle. Given a non-negative integer numRows, generate the first numRows of Pascal’s triangle. Example: Input: 5 O...
2018-09-04 16:22:49 391
原创 LeetCode刷题笔记:颠倒二进制位
Reverse bits of a given 32 bits unsigned integer. Example Input: 43261596 Output: 964176192 Explanation: 43261596 represented in binary as 00000010100101000001111010011100, return ...
2018-09-04 10:58:51 380
原创 LeetCode刷题笔记:汉明距离
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Hamming distance. Note: 0 ≤ x, y <...
2018-09-01 21:14:22 305
原创 LeetCode刷题笔记:位1的个数
Write a function that takes an unsigned integer and returns the number of ‘1’ bits it has (also known as the Hamming weight). Example 1: Input: 11 Output: 3 Explanation: Integer 11 has binary repr...
2018-09-01 20:55:27 229
cocos如何将事件监听封装到自定义的精灵类中,求一个demo
2015-10-22
cocos2d-x如何让自己自定义的精灵能够动态地添加监听事件
2015-10-21
cocos2d-x如何实现在一个层内通过多点触控移动多个自定义精灵
2015-10-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人