- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 [Leetcode] Single Number
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using e
2015-03-22 02:36:27 393
原创 [Leetcode] Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 000000
2015-03-22 02:13:41 927 1
原创 Git生成patch和合入patch
1. 生成patch:git diff > diff.patch在当前的工作目录下生成diff.patch文件。2. 合入patch:git apply diff.patch合入当前目录下的diff.patch文件。
2015-03-17 00:15:03 15195
原创 Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with
2015-03-15 01:51:18 515
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人