- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 duang!!!为什么函数可以返回unique_ptr
从智能指针说起 unique_ptr取代auto_ptr 返回值优化(RVO) make_unique
2015-03-19 11:48:44 7078 1
原创 LeetCode190——Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010
2015-03-12 11:21:17 3644
原创 LeetCode191——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 00000000
2015-03-12 10:53:59 2492
原创 LeetCode16——3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly
2015-03-12 00:00:50 1676
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人