- 博客(13)
- 资源 (4)
- 收藏
- 关注
转载 Github上fork之后如何保持同步
http://blog.csdn.net/bluecloudmatrix/article/details/41176373?utm_source=tuicool&utm_medium=referral我们会去fork别人的一个项目,这就在自己的Github上生成了一个与原作者项目互不影响的副本,自己可以将自己Github上的这个项目再clone到本地进行修改,修改后再push,只有自己
2016-01-27 21:16:42 4925
原创 279. Perfect Squares
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given n =
2016-01-19 21:42:36 429
原创 284. Peeking Iterator
Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- it essentially peek() at the element that will be
2016-01-19 21:28:05 367
原创 300. Longest Increasing Subsequence
Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest increasing subsequence is [2, 3, 7, 101], theref
2016-01-19 21:04:57 569
原创 289. Game of Life
According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970."Given a board with m by
2016-01-18 23:00:26 566
原创 328. Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.You should try to do it in p
2016-01-18 21:37:48 749
原创 c++ string trim
1.使用string的find_first_not_of,和find_last_not_of方法[cpp] view plaincopy/* Filename : StringTrim1.cpp Compiler : Visual C++ 8.0 Description : Demo how to trim string by
2016-01-14 20:46:53 1100
原创 vc++ 读取指定文件夹下所有文件名
#include #include #include #include using namespace std;using namespace std::tr2::sys; vector fileLists; directory_iterator it("E:\\projects\\ConsoleApplication3\\ConsoleApplication3\\pcdfiles
2016-01-14 19:56:31 3423
原创 268. Missing Number
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.For example,Given nums = [0, 1, 3] return 2.Note:Your algorithm should ru
2016-01-11 22:25:47 503
原创 319. Bulb Switcher&&程序员面试金典6.6
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turning of
2016-01-11 22:02:54 476
原创 326. Power of Three
Given an integer, write a function to determine if it is a power of three.Follow up:Could you do it without using any loop / recursion?Credits:Special thanks to @dietpepsi for adding this prob
2016-01-11 21:32:50 517
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人