上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页
摘要: 原题链接在这里:https://leetcode.com/problems/car-pooling/ 题目: You are driving a vehicle that has capacity empty seats initially available for passengers. The 阅读全文
posted @ 2019-12-11 13:14 Dylan_Java_NYC 阅读(525) 评论(0) 推荐(1) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/random-pick-with-weight/ 题目: Given an array w of positive integers, where w[i] describes the weight of index i,  阅读全文
posted @ 2019-12-11 11:23 Dylan_Java_NYC 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/linked-list-random-node/ 题目: Given a singly linked list, return a random node's value from the linked list. Each 阅读全文
posted @ 2019-12-11 09:45 Dylan_Java_NYC 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/random-pick-index/ 题目: Given an array of integers with possible duplicates, randomly output the index of a given 阅读全文
posted @ 2019-12-11 09:25 Dylan_Java_NYC 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/find-common-characters/ 题目: Given an array A of strings made only from lowercase letters, return a list of all c 阅读全文
posted @ 2019-12-10 13:12 Dylan_Java_NYC 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/diagonal-traverse/ 题目: Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix i 阅读全文
posted @ 2019-12-10 12:32 Dylan_Java_NYC 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/friends-of-appropriate-ages/ 题目: Some people will make friend requests. The list of their ages is given and ages 阅读全文
posted @ 2019-12-10 11:57 Dylan_Java_NYC 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/goat-latin/ 题目: A sentence S is given, composed of words separated by spaces. Each word consists of lowercase an 阅读全文
posted @ 2019-12-10 08:44 Dylan_Java_NYC 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/monotonic-array/ 题目: An array is monotonic if it is either monotone increasing or monotone decreasing. An array  阅读全文
posted @ 2019-12-10 08:03 Dylan_Java_NYC 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/ 题目: Given a binary tree, return the vertical order traversal of its n 阅读全文
posted @ 2019-12-10 07:55 Dylan_Java_NYC 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/ 题目: In a given array nums of positive integers, find three non-overl 阅读全文
posted @ 2019-12-09 12:51 Dylan_Java_NYC 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/exclusive-time-of-functions/ 题目: On a single threaded CPU, we execute some functions. Each function has a unique 阅读全文
posted @ 2019-12-09 10:22 Dylan_Java_NYC 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/verifying-an-alien-dictionary/ 题目: In an alien language, surprisingly they also use english lowercase letters, b 阅读全文
posted @ 2019-12-09 03:33 Dylan_Java_NYC 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/basic-calculator-iii/ 题目: Implement a basic calculator to evaluate a simple expression string. The expression st 阅读全文
posted @ 2019-12-08 08:35 Dylan_Java_NYC 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/swap-for-longest-repeated-character-substring/ 题目: Given a string text, we are allowed to swap two of the charac 阅读全文
posted @ 2019-12-08 06:29 Dylan_Java_NYC 阅读(801) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/word-subsets/ 题目: We are given two arrays A and B of words. Each word is a string of lowercase letters. Now, say 阅读全文
posted @ 2019-12-06 08:07 Dylan_Java_NYC 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/reorganize-string/ 题目: Given a string S, check if the letters can be rearranged so that two characters that are 阅读全文
posted @ 2019-12-05 07:55 Dylan_Java_NYC 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/longest-repeating-substring/ 题目: Given a string S, find out the length of the longest repeating substring(s). Re 阅读全文
posted @ 2019-12-05 07:33 Dylan_Java_NYC 阅读(2007) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/score-of-parentheses/ 题目: Given a balanced parentheses string S, compute the score of the string based on the fo 阅读全文
posted @ 2019-12-05 06:10 Dylan_Java_NYC 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/ 题目: Given a string s of '(' , ')' and lowercase English characters. Yo 阅读全文
posted @ 2019-12-04 09:48 Dylan_Java_NYC 阅读(1229) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/custom-sort-string/ 题目: S and T are strings composed of lowercase letters. In S, no letter occurs more than once 阅读全文
posted @ 2019-12-04 08:47 Dylan_Java_NYC 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters/ 题目: Given a string S, return the number of substrings of l 阅读全文
posted @ 2019-12-04 08:21 Dylan_Java_NYC 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/find-and-replace-pattern/ 题目: You have a list of words and a pattern, and you want to know which words in words  阅读全文
posted @ 2019-12-04 07:01 Dylan_Java_NYC 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/ 题目: Return the lexicographically smallest subsequence of text that 阅读全文
posted @ 2019-12-03 13:44 Dylan_Java_NYC 阅读(944) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/shifting-letters/ 题目: We have a string S of lowercase letters, and an integer array shifts. Call the shift of a 阅读全文
posted @ 2019-12-03 11:04 Dylan_Java_NYC 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/remove-comments/ 题目: Given a C++ program, remove comments from it. The program source is an array where source[i 阅读全文
posted @ 2019-12-02 13:20 Dylan_Java_NYC 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/replace-the-substring-for-balanced-string/ 题目: You are given a string containing only 4 kinds of characters 'Q', 阅读全文
posted @ 2019-12-02 08:32 Dylan_Java_NYC 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/delete-nodes-and-return-forest/ 题目: Given the root of a binary tree, each node in the tree has a distinct value. 阅读全文
posted @ 2019-11-30 14:19 Dylan_Java_NYC 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/matchsticks-to-square/ 题目: Remember the story of Little Match Girl? By now, you know exactly what matchsticks th 阅读全文
posted @ 2019-11-28 14:09 Dylan_Java_NYC 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/possible-bipartition/ 题目: Given a set of N people (numbered 1, 2, ..., N), we would like to split everyone into 阅读全文
posted @ 2019-11-28 13:22 Dylan_Java_NYC 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/sentence-similarity-ii/ 题目: Given two sentences words1, words2 (each represented as an array of strings), and a 阅读全文
posted @ 2019-11-28 12:57 Dylan_Java_NYC 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/sentence-similarity/ 题目: Given two sentences words1, words2 (each represented as an array of strings), and a lis 阅读全文
posted @ 2019-11-28 12:19 Dylan_Java_NYC 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/increasing-subsequences/ 题目: Given an integer array, your task is to find all the different possible increasing 阅读全文
posted @ 2019-11-28 10:26 Dylan_Java_NYC 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/number-of-enclaves/ 题目: Given a 2D array A, each cell is 0 (representing sea) or 1 (representing land) A move co 阅读全文
posted @ 2019-11-27 12:55 Dylan_Java_NYC 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/lonely-pixel-i/ 题目: Given a picture consisting of black and white pixels, find the number of black lonely pixels 阅读全文
posted @ 2019-11-27 12:30 Dylan_Java_NYC 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/shortest-path-in-binary-matrix/ 题目: In an N by N square grid, each cell is either empty (0) or blocked (1). A cl 阅读全文
posted @ 2019-11-27 11:24 Dylan_Java_NYC 阅读(846) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/n-ary-tree-postorder-traversal/ 题目: Given an n-ary tree, return the postorder traversal of its nodes' values. Na 阅读全文
posted @ 2019-11-27 10:49 Dylan_Java_NYC 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/n-ary-tree-preorder-traversal/ 题目: Given an n-ary tree, return the preorder traversal of its nodes' values. Nary 阅读全文
posted @ 2019-11-27 10:22 Dylan_Java_NYC 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/minimum-knight-moves/ 题目: In an infinite chess board with coordinates from -infinity to +infinity, you have a kn 阅读全文
posted @ 2019-11-26 13:22 Dylan_Java_NYC 阅读(1312) 评论(3) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/shortest-bridge/ 题目: In a given 2D binary array A, there are two islands. (An island is a 4-directionally connec 阅读全文
posted @ 2019-11-26 12:38 Dylan_Java_NYC 阅读(352) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页