上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 76 下一页
摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [ 2, 0, 3, 5, 2, 1] sumRan 阅读全文
posted @ 2018-10-08 13:00 bernieloveslife 阅读(146) 评论(0) 推荐(0)
摘要: A message containing letters from A Z is being encoded to numbers using the following mapping: 'A' 1 'B' 2 ... 'Z' 26 Given a non empty string contain 阅读全文
posted @ 2018-10-08 13:00 bernieloveslife 阅读(270) 评论(0) 推荐(0)
摘要: Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat", 阅读全文
posted @ 2018-10-08 13:00 bernieloveslife 阅读(144) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2018-10-07 12:47 bernieloveslife 阅读(446) 评论(0) 推荐(0)
摘要: Your are given an array of integers prices, for which the i th element is the price of a given stock on day i; and a non negative integer fee represen 阅读全文
posted @ 2018-10-07 12:47 bernieloveslife 阅读(125) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2018-10-07 12:46 bernieloveslife 阅读(106) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2018-10-07 12:46 bernieloveslife 阅读(125) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2018-10-07 12:46 bernieloveslife 阅读(170) 评论(0) 推荐(0)
摘要: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and ' '. '.' Matches any single character. ' ' 阅读全文
posted @ 2018-10-06 13:22 bernieloveslife 阅读(144) 评论(0) 推荐(0)
摘要: You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points. Example: Input: points = [[ 阅读全文
posted @ 2018-10-06 13:22 bernieloveslife 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 76 下一页