- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 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
原创 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
原创 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
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人