自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 Binary Tree Maximum Path Sum

数当中路径的最大和

2014-09-12 20:43:30 647

原创 leetcode Valid Palindrome

回文串的判断

2014-09-12 20:28:53 615

原创 leetcode Word Ladder

以单词为节点的图的搜索。

2014-09-12 20:16:02 640

原创 leetcode Longest Consecutive Sequence

获取一个数组当中,最长连续数字

2014-09-12 20:06:30 625

原创 leetcode Sum Root to Leaf Numbers

树的简单递归。

2014-09-12 20:01:44 578

原创 leetcode Surrounded Regions

层次扫描结合广度优先搜索

2014-09-12 19:46:21 644

原创 leetcode Palindrome Partitioning II

这道题目,对于O(n^2)求出所有的回文字串,必须用dp的方法。

2014-09-09 21:10:30 529

原创 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 1085. Perfect Sequence (25)

pat 1085. Perfect Sequence (25)

2014-09-06 21:58:54 2465

原创 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 1057. Stack (30) 浙江大学复试上机最后一题

树状数组的一个求解

2014-08-28 20:43:13 1157

原创 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 1013. Battle Over Cities (25)

pat 1013. Battle Over Cities (25)

2014-07-29 16:18:39 542

原创 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语言版

用C语言编写的数据结构演示系统,在Microsoft Visual C++6.0环境下运行。主要使用Dos演示数据结构的线性结构(数组,链表,串,队列和栈)、树(树的遍历,平衡二叉排序树)和排序结构(简单排序,堆排序,快速排序,归并排序),并且附有完整的程序设计报告。

2011-12-23

计算机程序C语言课程设计

本人的C语言课程设计,完成一个学生信息管理系统。系统中拥有增,删,改,查功能。并且有完整的报告。非常适合初学者。

2011-12-23

NQueen演示系统

使用java swing图形化动态演示n皇后的排列问题。 按照用户要求,确定棋盘大小。

2011-06-29

java多人聊天系统,图形用户界面

这个java程序以Eclipse为环境运行,可以支持多人聊天。 采用图形用户界面,能够很好的实现通信!

2011-02-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除