ÉÏÒ»Ò³ 1 ¡¤¡¤¡¤ 5 6 7 8 9 10 11 12 13 ¡¤¡¤¡¤ 44 ÏÂÒ»Ò³
ÕªÒª£º Given a string , count the number of distinct, non empty subsequences of . Since the result may be large, return the answer modulo . Example 1: Exampl ÔĶÁÈ«ÎÄ
posted @ 2020-04-20 06:23 Grandyang ÔĶÁ(4567) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º Given a set of points in the xy plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y axes. If ÔĶÁÈ«ÎÄ
posted @ 2020-04-13 06:26 Grandyang ÔĶÁ(3639) ÆÀÂÛ(1) ÍƼö(0) ±à¼­
ÕªÒª£º Given the node of a binary search tree, return the sum of values of all nodes with value between and (inclusive). The binary search tree is guaranteed ÔĶÁÈ«ÎÄ
posted @ 2020-04-06 07:41 Grandyang ÔĶÁ(3351) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º You have an array of . Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier . Then, e ÔĶÁÈ«ÎÄ
posted @ 2020-03-30 07:45 Grandyang ÔĶÁ(2987) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º You want to form a string of lowercase letters. At the beginning, your sequence is `'?' stamp` of lowercase letters. On each turn, you may place the s ÔĶÁÈ«ÎÄ
posted @ 2020-03-16 07:43 Grandyang ÔĶÁ(2251) ÆÀÂÛ(1) ÍƼö(1) ±à¼­
ÕªÒª£º The chess knight has a unique movement, it may move two squares vertically and one square horizontally, or two squares horizontally and one square ver ÔĶÁÈ«ÎÄ
posted @ 2020-03-02 07:49 Grandyang ÔĶÁ(2694) ÆÀÂÛ(1) ÍƼö(0) ±à¼­
ÕªÒª£º Write a class to count recent requests. It has only one method: , where t represents some time in milliseconds. Return the number of s that have been ÔĶÁÈ«ÎÄ
posted @ 2020-02-25 00:59 Grandyang ÔĶÁ(1980) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º When runs "serverless create_domain", we may get the following error: Could not find the certificate xxxx.com. at ServerlessCustomDomain. This indicat ÔĶÁÈ«ÎÄ
posted @ 2020-02-20 14:49 Grandyang ÔĶÁ(5272) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º In a given 2D binary array , there are two islands. (An island is a 4 directionally connected group of s not connected to any other 1s.) Now, we may c ÔĶÁÈ«ÎÄ
posted @ 2020-02-19 23:28 Grandyang ÔĶÁ(4050) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º For some fixed , an array is beautiful if it is a permutation of the integers , such that: For every `i ÕâµÀÌⶨÒåÁËa56爆大奖在线娱乐ƯÁÁÊý×飬˵µÄÊÇÔÚÈa56爆大奖在线娱乐âÁ½¸öÊý×ÖÖ®¼ä£¬²»´æÔÚÒ»¸öÕýºÃÊÇÕâÁ½¸öÊýÖ®ºÍµÄÒ»°ëµÄÊý×Ö ÔĶÁÈ«ÎÄ
posted @ 2020-02-09 14:47 Grandyang ÔĶÁ(3760) ÆÀÂÛ(1) ÍƼö(0) ±à¼­
ÕªÒª£º Given an n x n array of integers matrix, return the minimum sum of any falling path through matrix. A falling path starts at any element in the first ÔĶÁÈ«ÎÄ
posted @ 2020-02-06 14:44 Grandyang ÔĶÁ(2145) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º In an array A of 0s and 1s, how many non-empty subarrays have sum S? Example 1: Input: A = [1,0,1,0,1], S = 2 Output: 4 Explanation: The 4 subarrays a ÔĶÁÈ«ÎÄ
posted @ 2020-01-31 14:30 Grandyang ÔĶÁ(2387) ÆÀÂÛ(3) ÍƼö(1) ±à¼­
ÕªÒª£º Every email consists of a local name and a domain name, separated by the @ sign. For example, in , is the local name, and is the domain name. Besides ÔĶÁÈ«ÎÄ
posted @ 2020-01-27 04:39 Grandyang ÔĶÁ(1606) ÆÀÂÛ(0) ÍƼö(1) ±à¼­
ÕªÒª£º (This problem is the same as Minimize Malware Spread, with the differences bolded.) In a network of nodes, each node i is directly connected to anothe ÔĶÁÈ«ÎÄ
posted @ 2020-01-22 14:10 Grandyang ÔĶÁ(1266) ÆÀÂÛ(2) ÍƼö(0) ±à¼­
ÕªÒª£º Given an array of s and s, divide the array into 3 non empty parts such that all of these parts represent the same binary value. If it is possible, re ÔĶÁÈ«ÎÄ
posted @ 2019-12-27 14:24 Grandyang ÔĶÁ(1836) ÆÀÂÛ(0) ÍƼö(1) ±à¼­
ÕªÒª£º A string of s and s is monotone increasing if it consists of some number of s (possibly 0), followed by some number of s (also possibly 0.) We are giv ÔĶÁÈ«ÎÄ
posted @ 2019-12-01 02:29 Grandyang ÔĶÁ(2794) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might get long pressed, and the character will be typed ÔĶÁÈ«ÎÄ
posted @ 2019-11-23 06:38 Grandyang ÔĶÁ(1675) ÆÀÂÛ(2) ÍƼö(1) ±à¼­
ÕªÒª£º In a network of nodes, each node is directly connected to another node if and only if . Some nodes are initially infected by malware. Whenever two nod ÔĶÁÈ«ÎÄ
posted @ 2019-11-11 22:05 Grandyang ÔĶÁ(2212) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º Given an integer array , and an integer , return the number of tuples such that `i ÕâµÀÌâÊÇ֮ǰÄǵÀ "3Sum" µÄÍØÕ¹£¬Ö®Ç°ÄǵÀÌâÊÇ˵ûÓÐÖظ´Êý×Ö£¬¶øÕâµÀÌâÈ´ÓдóÁ¿µÄÖظ´Êý×Ö£¬a56爆大奖在线娱乐a56爆大奖在线娱乐×éºÏ¿ÉÄÜ»á´óÁ¿Öظ´³öÏÖ£¬ÈÃa56爆大奖在线娱乐ÃÇ ÔĶÁÈ«ÎÄ
posted @ 2019-11-08 09:27 Grandyang ÔĶÁ(2743) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º Given an array of non negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever is odd, ÔĶÁÈ«ÎÄ
posted @ 2019-11-05 02:02 Grandyang ÔĶÁ(1518) ÆÀÂÛ(0) ÍƼö(1) ±à¼­
ÕªÒª£º Given a string of and parentheses, we add the minimum number of parentheses ( or , and in any positions ) so that the resulting parentheses string is ÔĶÁÈ«ÎÄ
posted @ 2019-10-31 04:28 Grandyang ÔĶÁ(2225) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º Your music player contains different songs and she wants to listen to (not necessarily different) songs during your trip. You create a playlist so tha ÔĶÁÈ«ÎÄ
posted @ 2019-10-25 23:54 Grandyang ÔĶÁ(2270) ÆÀÂÛ(2) ÍƼö(1) ±à¼­
ÕªÒª£º A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possibl ÔĶÁÈ«ÎÄ
posted @ 2019-10-23 23:55 Grandyang ÔĶÁ(5110) ÆÀÂÛ(4) ÍƼö(0) ±à¼­
ÕªÒª£º Given a circular array C of integers represented by , find the maximum possible sum of a non empty subarray of C. Here, a circular array means the end ÔĶÁÈ«ÎÄ
posted @ 2019-10-21 21:26 Grandyang ÔĶÁ(5053) ÆÀÂÛ(2) ÍƼö(0) ±à¼­
ÕªÒª£º Given a string , return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positio ÔĶÁÈ«ÎÄ
posted @ 2019-10-18 23:43 Grandyang ÔĶÁ(2268) ÆÀÂÛ(0) ÍƼö(1) ±à¼­
ÕªÒª£º In a 2D grid of s and s, we change at most one to a . After, what is the size of the largest island? (An island is a 4 directionally connected group o ÔĶÁÈ«ÎÄ
posted @ 2019-10-13 23:32 Grandyang ÔĶÁ(3653) ÆÀÂÛ(2) ÍƼö(0) ±à¼­
ÕªÒª£º We are given two arrays and of words. Each word is a string of lowercase letters. Now, say that word is a subset of word if every letter in occurs in ÔĶÁÈ«ÎÄ
posted @ 2019-10-04 23:33 Grandyang ÔĶÁ(2513) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º Let's define a function that returns the number of unique characters on , for example if then , ,`"C" "O" "D" s`, therefore . On this problem given a ÔĶÁÈ«ÎÄ
posted @ 2019-10-01 23:36 Grandyang ÔĶÁ(3361) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º Given an array , partition it into two (contiguous) subarrays and so that: Every element in is less than or equal to every element in . and are non em ÔĶÁÈ«ÎÄ
posted @ 2019-09-29 23:25 Grandyang ÔĶÁ(2044) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º Given a positive integer , how many ways can we write it as a sum of consecutive positive integers? Example 1: Example 2: Example 3: Note: `1 ÕâµÀÌâ¸øÁËÒ»¸öÕý ÔĶÁÈ«ÎÄ
posted @ 2019-09-26 23:54 Grandyang ÔĶÁ(3786) ÆÀÂÛ(2) ÍƼö(0) ±à¼­
ÕªÒª£º In a deck of cards, each card has an integer written on it. Return if and only if you can choose such that it is possible to split the entire deck int ÔĶÁÈ«ÎÄ
posted @ 2019-09-23 23:20 Grandyang ÔĶÁ(2432) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º An undirected, connected tree with N nodes labelled 0...N-1 and N-1 edges are given. The ith edge connects nodes edges[i][0] and edges[i][1] together. ÔĶÁÈ«ÎÄ
posted @ 2019-09-14 23:46 Grandyang ÔĶÁ(5100) ÆÀÂÛ(1) ÍƼö(2) ±à¼­
ÕªÒª£º A game on an undirected graph is played by two players, Mouse and Cat, who alternate turns. The graph is given as follows: is a list of all nodes such ÔĶÁÈ«ÎÄ
posted @ 2019-09-12 23:55 Grandyang ÔĶÁ(4268) ÆÀÂÛ(4) ÍƼö(0) ±à¼­
ÕªÒª£º Two strings X and Y are similar if we can swap two letters (in different positions) of X, so that it equals Y. For example, "tars" and "rats" are simi ÔĶÁÈ«ÎÄ
posted @ 2019-09-10 22:14 Grandyang ÔĶÁ(3237) ÆÀÂÛ(5) ÍƼö(0) ±à¼­
ÕªÒª£º Given an array of integers , sort the array in ascending order. Example 1: Example 2: Note: 1. `1 ÕâµÀÌâÈÃa56爆大奖在线娱乐ÃǸøÊý×éÅÅÐò£¬ÔÚƽʱˢÆäËûÌâµÄʱºò£¬Óöµ½ÒªÅÅÐòµÄʱºò£¬Ò»°ã¶¼»áµ÷ÓÃϵͳ×Ô´øµÄÅÅÐòº¯Êý£¬Ïñ C+ ÔĶÁÈ«ÎÄ
posted @ 2019-09-07 23:52 Grandyang ÔĶÁ(4987) ÆÀÂÛ(1) ÍƼö(0) ±à¼­
ÕªÒª£º This problem is an interactive problem new to the LeetCode platform. We are given a word list of unique words, each word is 6 letters long, and one wo ÔĶÁÈ«ÎÄ
posted @ 2019-09-02 21:45 Grandyang ÔĶÁ(6451) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º In an election, the th vote was cast for at time . Now, we would like to implement the following query function: will return the number of the person ÔĶÁÈ«ÎÄ
posted @ 2019-08-27 23:48 Grandyang ÔĶÁ(2125) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º An undirected, connected graph of N nodes (labeled 0, 1, 2, ..., N-1) is given as graph. graph.length = N, and j != i is in the list graph[i] exactly ÔĶÁÈ«ÎÄ
posted @ 2019-08-25 23:37 Grandyang ÔĶÁ(4019) ÆÀÂÛ(2) ÍƼö(1) ±à¼­
ÕªÒª£º Given a rooted binary tree, return the lowest common ancestor of its deepest leaves. Recall that: The node of a binary tree is a leaf if and only if i ÔĶÁÈ«ÎÄ
posted @ 2019-08-22 22:39 Grandyang ÔĶÁ(2953) ÆÀÂÛ(0) ÍƼö(0) ±à¼­
ÕªÒª£º We are given a list of (axis aligned) . Each , where (x1, y1) are the coordinates of the bottom left corner, and (x2, y2) are the coordinates of the t ÔĶÁÈ«ÎÄ
posted @ 2019-08-18 02:56 Grandyang ÔĶÁ(4697) ÆÀÂÛ(0) ÍƼö(3) ±à¼­
ÉÏÒ»Ò³ 1 ¡¤¡¤¡¤ 5 6 7 8 9 10 11 12 13 ¡¤¡¤¡¤ 44 ÏÂÒ»Ò³
Fork me on GitHub