- 博客(43)
- 资源 (5)
- 收藏
- 关注
原创 leetcode Pascal's Triangle II
Pascal's Triangle II Total Accepted: 16710 Total Submissions: 54790My SubmissionsGiven an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,
2014-09-12 21:34:03 686
原创 leetcode Pascal's Triangle
Pascal's Triangle Total Accepted: 18780 Total Submissions: 59362My SubmissionsGiven numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[
2014-09-12 21:31:57 544
原创 leetcode Triangle
Triangle Total Accepted: 17742 Total Submissions: 66191My SubmissionsGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row
2014-09-12 21:15:37 567
原创 leetcode Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock II Total Accepted: 22750 Total Submissions: 61772My SubmissionsSay you have an array for which the ith element is the price of a given stock on day i.De
2014-09-12 21:13:32 576
原创 leetcode Best Time to Buy and Sell Stock
Best Time to Buy and Sell Stock Total Accepted: 22896 Total Submissions: 73662My SubmissionsSay you have an array for which the ith element is the price of a given stock on day i.If yo
2014-09-12 21:10:37 534
原创 Palindrome Partitioning leetcode
Palindrome Partitioning Total Accepted: 18096 Total Submissions: 69797My SubmissionsGiven a string s, partition s such that every substring of the partition is a palindrome.Return all
2014-09-09 16:01:49 675
原创 leetcode Clone Graph
Clone Graph Total Accepted: 16482 Total Submissions: 72324My SubmissionsClone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirect
2014-09-09 15:52:39 767
原创 leetcode Candy
Candy Total Accepted: 17540 Total Submissions: 92484My SubmissionsThere are N children standing in a line. Each child is assigned a rating value.You are giving candies to these childre
2014-09-09 15:40:14 802
原创 leetcode Gas Station
Gas Station Total Accepted: 19381 Total Submissions: 75345My SubmissionsThere are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car w
2014-09-09 15:39:50 720
原创 pat 1084. Broken Keyboard (20)
1084. Broken Keyboard (20)时间限制200 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueOn a broken keyboard, some of the keys are
2014-09-06 22:08:28 1333
原创 pat 1086. Tree Traversals Again (25)
pat 1086. Tree Traversals Again (25)
2014-09-06 21:40:50 2222
原创 pat 1087. All Roads Lead to Rome (30)
1087. All Roads Lead to Rome (30)
2014-09-06 19:17:53 2905 2
原创 pat 1018. Public Bike Management (30)
1018. Public Bike Management (30)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThere is a public bike service in H
2014-08-25 20:38:18 849
原创 mysql无法连接,登录,关闭等问题
现在mysql出问题了,出现的问题是:1:客户端连接:Can't connect to MySQL server on '10.14.39.220'2.本地服务器登录,mysql -uroot -phqnERROR 1045 (28000):Access denied for user 'root'@'localhost' (using Password:YES)无法登录mysql
2014-08-03 21:59:20 898
原创 Single Number
Single Number Total Accepted: 28603 Total Submissions: 62862My SubmissionsGiven an array of integers, every element appears twice except for one. Find that single one.Note:Your algor
2014-08-02 11:23:17 454
原创 Single Number II
Single Number IIGiven an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
2014-08-02 11:20:06 754
原创 Copy List with Random Pointer
Copy List with Random Pointer Total Accepted: 15399 Total Submissions: 67259My SubmissionsA linked list is given such that each node contains an additional random pointer which could poi
2014-08-02 10:39:45 485
原创 Word Break
Word Break Total Accepted: 18345 Total Submissions: 88544My SubmissionsGiven a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of
2014-08-01 21:04:18 550
原创 Word Break II
Word Break Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a va
2014-08-01 20:22:12 638
原创 Linked List Cycle
Linked List Cycle Total Accepted: 24397 Total Submissions: 68598My SubmissionsGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra sp
2014-08-01 16:51:27 687
原创 Linked List Cycle II
Linked List Cycle II Total Accepted: 17710 Total Submissions: 57697My SubmissionsGiven a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow u
2014-08-01 16:43:05 522
原创 Reorder List
Reorder List Total Accepted: 15732 Total Submissions: 78041My SubmissionsGiven a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place
2014-08-01 16:13:40 401
原创 Binary Tree Preorder Traversal
Binary Tree Preorder Traversal Total Accepted: 26399 Total Submissions: 74449My SubmissionsGiven a binary tree, return the preorder traversal of its nodes' values.For example:Given b
2014-08-01 15:41:57 511
原创 leetcode Binary Tree Postorder Traversal
Binary Tree Postorder Traversal Total Accepted: 23892 Total Submissions: 77206My SubmissionsGiven a binary tree, return the postorder traversal of its nodes' values.For example:Given
2014-08-01 15:36:41 444
原创 Leetcode LRU Cache
LRU Cache Total Accepted: 14047 Total Submissions: 103807My SubmissionsDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operatio
2014-08-01 14:09:45 535
原创 Sort List leetcode
Sort List Total Accepted: 16300 Total Submissions: 79978My SubmissionsSort a linked list in O(n log n) time using constant space complexity.Have you been asked this que
2014-07-30 21:19:01 543
原创 pat 1082. Read Number in Chinese (25)
1082. Read Number in Chinese (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven an integer with no more than
2014-07-28 15:10:34 827
原创 pat 1080. Graduate Admission (30) 浙大复试上机第四题
1080. Graduate Admission (30)时间限制200 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIt is said that in 2013, there were abo
2014-07-26 09:55:45 709
原创 pat 1078. Hashing (25)
时间结果得分题目语言用时(ms)内存(kB)用户7月25日 14:57答案正确251078C++ (g++)7632jack测试点测试点结果用时(ms)内存(kB)得分/满分
2014-07-25 14:56:02 778
原创 Max Points on a Line
Max Points on a Line Total Accepted: 13981 Total Submissions: 130605My SubmissionsGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.
2014-07-22 14:50:09 536
数据结构课程设计C语言版
2011-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人