- 博客(43)
- 资源 (5)
- 收藏
- 关注
原创 leetcode Pascal's Triangle II
Pascal's Triangle II Total Accepted: 16710 Total Submissions: 54790My Submissions Given 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 673
原创 leetcode Pascal's Triangle
Pascal's Triangle Total Accepted: 18780 Total Submissions: 59362My Submissions Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [
2014-09-12 21:31:57 532
原创 leetcode Triangle
Triangle Total Accepted: 17742 Total Submissions: 66191My Submissions Given 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 553
原创 leetcode Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock II Total Accepted: 22750 Total Submissions: 61772My Submissions Say 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 567
原创 leetcode Best Time to Buy and Sell Stock
Best Time to Buy and Sell Stock Total Accepted: 22896 Total Submissions: 73662My Submissions Say 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 526
原创 Palindrome Partitioning leetcode
Palindrome Partitioning Total Accepted: 18096 Total Submissions: 69797My Submissions Given a string s, partition s such that every substring of the partition is a palindrome. Return all
2014-09-09 16:01:49 663
原创 leetcode Clone Graph
Clone Graph Total Accepted: 16482 Total Submissions: 72324My Submissions Clone 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 760
原创 leetcode Candy
Candy Total Accepted: 17540 Total Submissions: 92484My Submissions There 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 794
原创 leetcode Gas Station
Gas Station Total Accepted: 19381 Total Submissions: 75345My Submissions There 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 712
原创 pat 1084. Broken Keyboard (20)
1084. Broken Keyboard (20) 时间限制 200 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue On a broken keyboard, some of the keys are
2014-09-06 22:08:28 1320
原创 pat 1086. Tree Traversals Again (25)
pat 1086. Tree Traversals Again (25)
2014-09-06 21:40:50 2206
原创 pat 1087. All Roads Lead to Rome (30)
1087. All Roads Lead to Rome (30)
2014-09-06 19:17:53 2894 2
原创 pat 1018. Public Bike Management (30)
1018. Public Bike Management (30) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue There is a public bike service in H
2014-08-25 20:38:18 842
原创 mysql无法连接,登录,关闭等问题
现在mysql出问题了,出现的问题是: 1:客户端连接:Can't connect to MySQL server on '10.14.39.220' 2.本地服务器登录,mysql -uroot -phqn ERROR 1045 (28000):Access denied for user 'root'@'localhost' (using Password:YES) 无法登录mysql
2014-08-03 21:59:20 892
原创 Single Number
Single Number Total Accepted: 28603 Total Submissions: 62862My Submissions Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algor
2014-08-02 11:23:17 443
原创 Single Number II
Single Number II Given 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 747
原创 Copy List with Random Pointer
Copy List with Random Pointer Total Accepted: 15399 Total Submissions: 67259My Submissions A linked list is given such that each node contains an additional random pointer which could poi
2014-08-02 10:39:45 475
原创 Word Break
Word Break Total Accepted: 18345 Total Submissions: 88544My Submissions Given 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 542
原创 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 626
原创 Linked List Cycle
Linked List Cycle Total Accepted: 24397 Total Submissions: 68598My Submissions Given 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 677
原创 Linked List Cycle II
Linked List Cycle II Total Accepted: 17710 Total Submissions: 57697My Submissions Given 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 514
原创 Reorder List
Reorder List Total Accepted: 15732 Total Submissions: 78041My Submissions Given 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 393
原创 Binary Tree Preorder Traversal
Binary Tree Preorder Traversal Total Accepted: 26399 Total Submissions: 74449My Submissions Given a binary tree, return the preorder traversal of its nodes' values. For example: Given b
2014-08-01 15:41:57 501
原创 leetcode Binary Tree Postorder Traversal
Binary Tree Postorder Traversal Total Accepted: 23892 Total Submissions: 77206My Submissions Given a binary tree, return the postorder traversal of its nodes' values. For example: Given
2014-08-01 15:36:41 433
原创 Leetcode LRU Cache
LRU Cache Total Accepted: 14047 Total Submissions: 103807My Submissions Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operatio
2014-08-01 14:09:45 526
原创 Sort List leetcode
Sort List Total Accepted: 16300 Total Submissions: 79978My Submissions Sort 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 536
原创 pat 1082. Read Number in Chinese (25)
1082. Read Number in Chinese (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given an integer with no more than
2014-07-28 15:10:34 818
原创 pat 1080. Graduate Admission (30) 浙大复试上机第四题
1080. Graduate Admission (30) 时间限制 200 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue It is said that in 2013, there were abo
2014-07-26 09:55:45 700
原创 pat 1078. Hashing (25)
时间 结果 得分 题目 语言 用时(ms) 内存(kB) 用户 7月25日 14:57 答案正确 25 1078 C++ (g++) 7 632 jack 测试点 测试点 结果 用时(ms) 内存(kB) 得分/满分
2014-07-25 14:56:02 770
原创 Max Points on a Line
Max Points on a Line Total Accepted: 13981 Total Submissions: 130605My Submissions Given 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 529
数据结构课程设计C语言版
2011-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人