倪春恩的博客
09
29
lc-287 lc-287
/** Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. T
2022-09-29
28
lc-279 lc-279
/** Given an integer n, return the least number of perfect square numbers that sum to n. A perfect square is an inte
2022-09-28
27
lc-240 lc-240
/** * Write an efficient algorithm that searches for a value target in an m x n * integer matrix matrix. This matrix h
2022-09-27
26
lc-239 lc-239
import java.util.Comparator; import java.util.PriorityQueue; /** You are given an array of integers nums, there is a sl
2022-09-26
25
lc-238 lc-238
/** Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements
2022-09-25
23
lc-236 lc-236
/** Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the defi
2022-09-23
22
lc-234 lc-234
/** Given the head of a singly linked list, return true if it is a palindrome or false otherwise. Example 1: I
2022-09-22
21
lc-226 lc-226
/** Given the root of a binary tree, invert the tree, and return its root. Example 1: Input: root = [4,2,7,1,3,
2022-09-21
20
lc-221 lc-221
/** Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its are
2022-09-20
19
lc-215 lc-215
/** Given an integer array nums and an integer k, return the kᵗʰ largest element in the array. Note that it is the k
2022-09-19
18
lc-208 lc-208
/** A trie (pronounced as "try") or prefix tree is a tree data structure used to efficiently store and retrieve keys in
2022-09-18
16
lc-207 lc-207
/** * There are a total of numCourses courses you have to take, labeled from 0 to * numCourses - 1. You are given an a
2022-09-16
1 / 2