上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 标题:Pascal's Triangle通过率:30.7%难度:简单GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], ... 阅读全文
posted @ 2015-01-14 10:05 pku_smile 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 标题:Excel Sheet Column Number通过率:39.8%难度:简单Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corr... 阅读全文
posted @ 2015-01-14 10:00 pku_smile 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 这一段一直忙考试,一直没有刷题,今天上来刷三道题感觉生疏起来了。。罪过啊。刷到今天了。。还是没有写算法的感觉,还是写代码太少了。java的用法又忘记了很多。java上手后就要开始写python了,反正现在就是没有写代码的感觉。题目:Longest Common Prefix通过率:26.5%难度:简... 阅读全文
posted @ 2015-01-13 11:54 pku_smile 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 标题:Merge Sorted Array通过率:31.1%难度:简单Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough s... 阅读全文
posted @ 2014-12-21 22:31 pku_smile 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 标题:Symmetric Tree通过率:31.1%难度:简单Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary ... 阅读全文
posted @ 2014-12-21 21:57 pku_smile 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 标题:Remove Duplicates from Sorted Array通过率:31.9%难度简单Given a sorted array, remove the duplicates in place such that each element appear onlyonceand retu... 阅读全文
posted @ 2014-12-18 13:54 pku_smile 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 标题:Balanced Binary Tree通过率:32.3%难度:简单Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is define... 阅读全文
posted @ 2014-12-18 13:45 pku_smile 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 标题:Maximum Depth of Binary Tree通过率:44.2%难度:简单Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest pa... 阅读全文
posted @ 2014-12-18 13:34 pku_smile 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 标题:Remove Element通过率:32.6%难度:简单Given an array and a value, remove all instances of that value in place and return the new length.The order of elements... 阅读全文
posted @ 2014-12-17 11:05 pku_smile 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 标题:Merge Two Sorted Lists通过率:33.1%难度:简单Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the... 阅读全文
posted @ 2014-12-17 10:53 pku_smile 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页