倪春恩的博客
08
29
lc-136 lc-136
/** Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You
2022-08-29
26
lc-128 lc-128
/** Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You mu
2022-08-26
25
lc-124 lc-124
/** A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connec
2022-08-25
24
lc-121 lc-121
/** You are given an array prices where prices[i] is the price of a given stock on the iᵗʰ day. You want to maximize
2022-08-24
23
lc-114 lc-114
/** Given the root of a binary tree, flatten the tree into a "linked list": The "linked list" should use the same T
2022-08-23
22
lc-105 lc-105
/** Given two integer arrays preorder and inorder where preorder is the preorder traversal of a binary tree and inorder
2022-08-22
18
lc-104 lc-104
Given the root of a binary tree, return its maximum depth. A binary tree’s maximum depth is the number of nodes along th
2022-08-18
17
lc-102 lc-102
Given the root of a binary tree, return the level order traversal of its nodes’ values. (i.e., from left to right, level
2022-08-17
16
lc-101 lc-101
//Given the root of a binary tree, check whether it is a mirror of itself (i.e., // symmetric around its center). // //
2022-08-16
15
lc-98 lc-98
//Given the root of a binary tree, determine if it is a valid binary search tree // (BST). // // A valid BST is defined
2022-08-15
12
lc-94 lc-94
//Given the root of a binary tree, return the inorder traversal of its nodes' va //lues. // // // Example 1: // // /
2022-08-12
11
lc-91 lc-91
//A message containing letters from A-Z can be encoded into numbers using the fo //llowing mapping: // // //'A' ->
2022-08-11
38 / 41