上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 76 下一页
摘要: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the 阅读全文
posted @ 2019-10-29 09:03 Schwifty 阅读(141) 评论(0) 推荐(0)
摘要: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is 阅读全文
posted @ 2019-10-29 04:00 Schwifty 阅读(162) 评论(0) 推荐(0)
摘要: Compare two version numbers version1 and version2.If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may assume 阅读全文
posted @ 2019-10-29 01:53 Schwifty 阅读(204) 评论(0) 推荐(0)
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: Follow up:Could you do it without any lo 阅读全文
posted @ 2019-10-28 09:19 Schwifty 阅读(120) 评论(0) 推荐(0)
摘要: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
posted @ 2019-10-27 05:33 Schwifty 阅读(180) 评论(0) 推荐(0)
摘要: Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's trian 阅读全文
posted @ 2019-10-27 00:11 Schwifty 阅读(125) 评论(0) 推荐(0)
摘要: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca 阅读全文
posted @ 2019-10-26 23:21 Schwifty 阅读(134) 评论(0) 推荐(0)
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2019-10-21 23:02 Schwifty 阅读(130) 评论(0) 推荐(0)
摘要: Given an input string, reverse the string word by word. Example 1: Example 2: Example 3: Note: A word is defined as a sequence of non-space characters 阅读全文
posted @ 2019-10-21 08:24 Schwifty 阅读(115) 评论(0) 推荐(0)
摘要: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. Example 1: Example 2: 阅读全文
posted @ 2019-10-20 04:13 Schwifty 阅读(110) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 76 下一页