倪春恩的博客
lc-560 lc-560
/** Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k. A
2022-10-31
lc-543 lc-543
/** Given the root of a binary tree, return the length of the diameter of the tree. The diameter of a binary tree is
2022-10-28
lc-538 lc-538
/** Given the root of a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST
2022-10-27
lc-448 lc-448
/** Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the
2022-10-26
lc-416 lc-416
/** Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subse
2022-10-24
lc-301 lc-301
/** Given a string s that contains parentheses and letters, remove the minimum number of invalid parentheses to make th
2022-10-08
lc-283 lc-283
/** Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero ele
2022-10-07
lc-297 lc-297
/** * Serialization is the process of converting a data structure or object into a * sequence of bits so that it can b
2022-10-06
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
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
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
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
33 / 39