自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (1)
  • 收藏
  • 关注

原创 【九度】题目1388:跳台阶 && 【LeetCode】Climbing Stairs

1、【九度】题目1388:跳台阶时间限制:1 秒内存限制:32 兆特殊判题:否提交:2435解决:995题目描述:一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法。输入:输入可能包含多个测试样例,对于每个测试案例,输入包括一个整数n(1输出:对应每个测试案例,输出该青蛙跳上一个n级的台阶总共有多少种跳法。样例输入:

2014-07-22 11:49:44 963

原创 【九度】题目1052:找x

题目1052:找x时间限制:1 秒内存限制:32 兆特殊判题:否提交:4671解决:2504题目描述:输入一个数n,然后输入n个数值各不相同,再输入一个值x,输出这个值在这个数组中的下标(从0开始,若不在数组中则输出-1)。输入:测试数据有多组,输入n(1输出:对于每组输入,请输出结果。样例输入:21 30样例输出:-1来源:2010年哈

2014-07-18 10:31:01 1033

原创 【LeetCode】Add Two Numbers

Add Two Numbers Total Accepted: 17137 Total Submissions: 75794 My SubmissionsYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each o

2014-07-17 15:53:10 687

原创 【九度】题目1001:A+B for Matrices

题目1001:A+B for Matrices时间限制:1 秒内存限制:32 兆特殊判题:否提交:13336解决:5429题目描述:    This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns.

2014-07-16 17:28:46 1048

原创 【LeetCode】Merge k Sorted Lists

Merge k Sorted Lists Total Accepted: 13489 Total Submissions: 61228 My SubmissionsMerge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.【解题思路】1、参考Me

2014-07-16 15:09:38 804

原创 【LeetCode】Merge Two Sorted Lists

Merge Two Sorted Lists Total Accepted: 18308 Total Submissions: 55982 My SubmissionsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the

2014-07-15 10:24:50 790

原创 【LeetCode】Validate Binary Search Tree

Validate Binary Search Tree Total Accepted: 15264 Total Submissions: 60008 My SubmissionsGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follo

2014-07-11 11:16:52 889

原创 【LeetCode】Pascal's Triangle II

Pascal's Triangle II Accepted: 11888 Total Submissions: 39509 My SubmissionsGiven an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].Note:Cou

2014-07-04 18:50:19 2272 2

原创 【LeetCode】Pascal's Triangle

Pascal's Triangle Total Accepted: 13674 Total Submissions: 43141 My SubmissionsGiven numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[     [1]

2014-07-04 16:59:58 679

原创 【LeetCode】Multiply Strings

Multiply Strings Total Accepted: 9184 Total Submissions: 45371 My SubmissionsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be a

2014-07-04 10:23:56 665

原创 【LeetCode】Spiral Matrix II

Spiral Matrix II Total Accepted: 9622 Total Submissions: 31755 My SubmissionsGiven an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n

2014-07-03 11:47:37 1007

原创 【LeetCode】Spiral Matrix

Spiral Matrix Total Accepted: 9568 Total Submissions: 47010 My SubmissionsGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Gi

2014-07-03 10:58:35 1026

原创 【LeetCode】Add Binary

Add Binary Total Accepted: 11726 Total Submissions: 45895 My SubmissionsGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".【解题思路】

2014-07-02 17:37:10 882

原创 【九度】题目1047:素数判定

题目1047:素数判定时间限制:1 秒内存限制:32 兆特殊判题:否提交:6455解决:2938题目描述:给定一个数n,要求判断其是否为素数(0,1,负数都是非素数)。输入:测试数据有多组,每组输入一个数n。输出:对于每组输入,若是素数则输出yes,否则输入no。样例输入:13样例输出:yes来源:2009年哈尔滨工业大学计算机研究生机试真题

2014-07-01 11:33:46 834

时间转换工具

将时间转换为13位毫秒,例如2014-01-14 12:43:20转为13位毫秒是1389674600000,同时也支持将1389674600000转换为2014-01-14 12:43:20

2014-01-14

空空如也

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

TA关注的人

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