ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
When runs "serverless create_domain", we may get the following error: Could not find the certificate xxxx.com. at ServerlessCustomDomain. This indicat ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
For some fixed , an array is beautiful if it is a permutation of the integers , such that: For every `i ÕâµÀÌⶨÒåÁËa56爆大奖在线娱乐ƯÁÁÊý×飬˵µÄÊÇÔÚÈa56爆大奖在线娱乐âÁ½¸öÊý×ÖÖ®¼ä£¬²»´æÔÚÒ»¸öÕýºÃÊÇÕâÁ½¸öÊýÖ®ºÍµÄÒ»°ëµÄÊý×Ö ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
(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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
Given an integer array , and an integer , return the number of tuples such that `i ÕâµÀÌâÊÇ֮ǰÄǵÀ "3Sum" µÄÍØÕ¹£¬Ö®Ç°ÄǵÀÌâÊÇ˵ûÓÐÖظ´Êý×Ö£¬¶øÕâµÀÌâÈ´ÓдóÁ¿µÄÖظ´Êý×Ö£¬a56爆大奖在线娱乐a56爆大奖在线娱乐×éºÏ¿ÉÄÜ»á´óÁ¿Öظ´³öÏÖ£¬ÈÃa56爆大奖在线娱乐ÃÇ ÔĶÁÈ«ÎÄ
ͻ񻣼
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, ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÕâµÀÌâ¸øÁËÒ»¸öÕý ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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. ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
Given an array of integers , sort the array in ascending order. Example 1: Example 2: Note: 1. `1 ÕâµÀÌâÈÃa56爆大奖在线娱乐ÃǸøÊý×éÅÅÐò£¬ÔÚƽʱˢÆäËûÌâµÄʱºò£¬Óöµ½ÒªÅÅÐòµÄʱºò£¬Ò»°ã¶¼»áµ÷ÓÃϵͳ×Ô´øµÄÅÅÐòº¯Êý£¬Ïñ C+ ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ
ͻ񻣼
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 ÔĶÁÈ«ÎÄ