上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig... 阅读全文
posted @ 2015-01-22 17:18 雄哼哼 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-... 阅读全文
posted @ 2015-01-22 14:18 雄哼哼 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret... 阅读全文
posted @ 2015-01-22 13:07 雄哼哼 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/pi9nc/article/details/9734437[Python]网络爬虫(一):抓取网页的含义和URL基本构成分类:爬虫Python2013-05-13 22:301597人阅读评论(0)收藏举报一、网络爬虫的定义网络爬虫,即Web S... 阅读全文
posted @ 2015-01-20 15:52 雄哼哼 阅读(4707) 评论(0) 推荐(0) 编辑
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2015-01-20 14:18 雄哼哼 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i... 阅读全文
posted @ 2015-01-16 22:51 雄哼哼 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.注意下k>... 阅读全文
posted @ 2015-01-16 22:40 雄哼哼 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.... 阅读全文
posted @ 2015-01-15 23:33 雄哼哼 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ],... 阅读全文
posted @ 2015-01-14 16:25 雄哼哼 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.1.概念,首先简单介绍一下Anagram(回文构词法)。Anagrams是... 阅读全文
posted @ 2015-01-14 14:56 雄哼哼 阅读(230) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页