Loading

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 题目要求:Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would b... 阅读全文
posted @ 2015-02-07 17:33 Yano_nankai 阅读(134) 评论(0) 推荐(0)
摘要: 题目要求:Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime comple... 阅读全文
posted @ 2015-02-07 17:31 Yano_nankai 阅读(143) 评论(0) 推荐(0)
摘要: 题目要求:Search in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 ... 阅读全文
posted @ 2015-02-07 17:22 Yano_nankai 阅读(136) 评论(0) 推荐(0)
摘要: 题目描述: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 阅读(149) 评论(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 阅读(123) 评论(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 阅读(119) 评论(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 阅读(140) 评论(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 阅读(109) 评论(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 阅读(119) 评论(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 阅读(124) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页