- 博客(5)
- 收藏
- 关注
原创 [leetcode] 168. Excel Sheet Column Title
168. Excel Sheet Column TitleGiven a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27
2016-08-31 22:43:29 239
转载 c++ 模板类 声明和定义都放在.h文件的原因
首先,一个编译单元(translation unit)是指一个.cpp文件以及它所#include的所有.h文件,.h文件里的代码将会被扩展到包含它的.cpp文件里,然后编译器编译该.cpp文件为一个.obj文件(假定我们的平台是win32),后者拥有PE(Portable Executable,即windows可执行文件)文件格式,并且本身包含的就已经是二进制码,但是不一定能够执行,因为并不保
2016-08-31 22:31:21 746 1
原创 [leetcode] 283. Move Zeroes
283. Move Zeroes Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after
2016-08-30 22:37:43 205
原创 [leetcode] 136. Single Number
136 Single NumberGiven 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 witho
2016-08-29 17:51:32 298
原创 [leetcode] 1. Two Sum
1. Two SumGiven an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution.Example: Given nums
2016-08-26 20:36:30 419
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人