倪春恩的博客
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
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
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
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
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
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
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
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
lc-206 lc-206
/** Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input:
2022-09-15
lc-200 lc-200
/** Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0 's (water), return the number of isl
2022-09-14
lc-198 lc-198
/** You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stash
2022-09-13
lc-169 lc-169
/** Given an array nums of size n, return the majority element. The majority element is the element that appears more
2022-09-09
34 / 39