Loading

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: 题目描述:Longest Valid ParenthesesGiven a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses s... 阅读全文
posted @ 2015-02-07 17:18 Yano_nankai 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Substring with Concatenation of All WordsYou are given a string,S, and a list of words,L, that are all of the same length. Find all starting indi... 阅读全文
posted @ 2015-02-07 16:54 Yano_nankai 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Divide Two IntegersDivide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.分析:不能用乘、除和取余,则只能... 阅读全文
posted @ 2015-02-07 16:44 Yano_nankai 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Implement strStr()Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Jav... 阅读全文
posted @ 2015-02-07 16:40 Yano_nankai 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Remove ElementGiven an array and a value, remove all instances of that value in place and return the new length.The order of elements can be chan... 阅读全文
posted @ 2015-02-07 16:32 Yano_nankai 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new ... 阅读全文
posted @ 2015-02-07 16:27 Yano_nankai 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Reverse Nodes in k-GroupGiven a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is ... 阅读全文
posted @ 2015-02-07 16:22 Yano_nankai 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Swap Nodes in PairsGiven a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list... 阅读全文
posted @ 2015-02-07 16:17 Yano_nankai 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Merge k Sorted ListsMergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.AnalysisThe simplest solution... 阅读全文
posted @ 2015-02-07 16:13 Yano_nankai 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Generate ParenthesesGivennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, ... 阅读全文
posted @ 2015-02-07 16:08 Yano_nankai 阅读(112) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页