算法
文章平均质量分 63
tuntunwork
这个作者很懒,什么都没留下…
展开
-
LeetCode: Reverse Words in a String
#include using std::string; void reserveWords(string& s){ if(s.empty()){ return; } int index = s.length() - 1; char* c = new char[100]; int c_size = 0; stri原创 2014-08-26 15:52:51 · 423 阅读 · 0 评论 -
LeetCode: Linked List Cycle
Linked list Cycle : Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?原创 2014-08-27 15:32:08 · 214 阅读 · 0 评论 -
LeetCode: Linked List Cycle II
QGiven a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?原创 2014-08-27 15:52:01 · 167 阅读 · 0 评论