Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?SOLUTION 1:经典快慢指针问题。如果存在环...
分类:
其他好文 时间:
2014-11-30 00:15:56
阅读次数:
262
ReleaseNotesRelease Notes.UpdatedAug 12, 2014bytheraysm...@gmail.comIntroductionThis page keeps the most up-to-date release notes.Tesseract release no...
分类:
其他好文 时间:
2014-11-29 20:14:01
阅读次数:
474
是这题的变种对一棵树从最后一次开始层次遍历,并返回结果。例如:Given binary tree{3,9,20,#,#,15,7}, 3 / \ 9 20 / \ 15 7return its bottom-up level order traversal as:[ ...
分类:
其他好文 时间:
2014-11-29 15:57:28
阅读次数:
251
Path SumGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the give...
分类:
其他好文 时间:
2014-11-29 15:49:23
阅读次数:
135
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-11-29 11:48:14
阅读次数:
184
Populating Next Right Pointers in Each Node IIFollow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any ...
分类:
其他好文 时间:
2014-11-29 11:45:49
阅读次数:
141
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-11-29 11:37:32
阅读次数:
131
题目链接:点击打开链接
Easy Delete
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB
Total submit users: 8, Accepted users: 4
Problem 13103 : No special judgement
...
分类:
其他好文 时间:
2014-11-28 20:11:51
阅读次数:
340
Given 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?
#include
#include
typedef struct ListNode...
分类:
其他好文 时间:
2014-11-28 18:22:51
阅读次数:
172
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
#include
#include
typedef struct ListNode {
int val;
struct ListNode *nex...
分类:
其他好文 时间:
2014-11-28 16:21:41
阅读次数:
179