leetcode.cn 2026-06-07
🟡2196.create-binary-tree-from-descriptions
🏷️ Tags
#tree #array #hash_table #binary_tree
🟡2196.create-binary-tree-from-descriptions
🏷️ Tags
#tree #array #hash_table #binary_tree
Telegraph
create-binary-tree-from-descriptions
给你一个二维整数数组 descriptions ,其中 descriptions[i] = [parenti, childi, isLefti] 表示 parenti 是 childi 在 二叉树 中的 父节点,二叉树中各节点的值 互不相同 。此外:
leetcode.com 2026-06-07
🟡2196.create-binary-tree-from-descriptions
🏷️ Tags
#tree #array #hash_table #binary_tree
🟡2196.create-binary-tree-from-descriptions
🏷️ Tags
#tree #array #hash_table #binary_tree
Telegraph
create-binary-tree-from-descriptions
You are given a 2D integer array descriptions where descriptions[i] = [parenti, childi, isLefti] indicates that parenti is the parent of childi in a binary tree of unique values. Furthermore,
leetcode.cn 2026-06-08
🟡2161.partition-array-according-to-given-pivot
🏷️ Tags
#array #two_pointers #simulation
🟡2161.partition-array-according-to-given-pivot
🏷️ Tags
#array #two_pointers #simulation
Telegraph
partition-array-according-to-given-pivot
给你一个下标从 0 开始的整数数组 nums 和一个整数 pivot 。请你将 nums 重新排列,使得以下条件均成立:
leetcode.com 2026-06-08
🟡2161.partition-array-according-to-given-pivot
🏷️ Tags
#array #two_pointers #simulation
🟡2161.partition-array-according-to-given-pivot
🏷️ Tags
#array #two_pointers #simulation
Telegraph
partition-array-according-to-given-pivot
You are given a 0-indexed integer array nums and an integer pivot. Rearrange nums such that the following conditions are satisfied:
leetcode.cn 2026-06-10
🔴3691.maximum-total-subarray-value-ii
🏷️ Tags
#greedy #segment_tree #array #heap_priority_queue
🔴3691.maximum-total-subarray-value-ii
🏷️ Tags
#greedy #segment_tree #array #heap_priority_queue
Telegraph
maximum-total-subarray-value-ii
给你一个长度为 n 的整数数组 nums 和一个整数 k。
leetcode.com 2026-06-10
🔴3691.maximum-total-subarray-value-ii
🏷️ Tags
#greedy #segment_tree #array #heap_priority_queue
🔴3691.maximum-total-subarray-value-ii
🏷️ Tags
#greedy #segment_tree #array #heap_priority_queue
Telegraph
maximum-total-subarray-value-ii
You are given an integer array nums of length n and an integer k. You must select exactly k distinct non-empty subarrays nums[l..r] of nums. Subarrays may overlap, but the exact same subarray (same l and r) cannot be chosen more than once. The value of a…
leetcode.cn 2026-06-11
🟡3558.number-of-ways-to-assign-edge-weights-i
🏷️ Tags
#tree #depth_first_search #math
🟡3558.number-of-ways-to-assign-edge-weights-i
🏷️ Tags
#tree #depth_first_search #math
Telegraph
number-of-ways-to-assign-edge-weights-i
给你一棵 n 个节点的无向树,节点从 1 到 n 编号,树以节点 1 为根。树由一个长度为 n - 1 的二维整数数组 edges 表示,其中 edges[i] = [ui, vi] 表示在节点 ui 和 vi 之间有一条边。
leetcode.com 2026-06-11
🟡3558.number-of-ways-to-assign-edge-weights-i
🏷️ Tags
#tree #depth_first_search #math
🟡3558.number-of-ways-to-assign-edge-weights-i
🏷️ Tags
#tree #depth_first_search #math
Telegraph
number-of-ways-to-assign-edge-weights-i
There is an undirected tree with n nodes labeled from 1 to n, rooted at node 1. The tree is represented by a 2D integer array edges of length n - 1, where edges[i] = [ui, vi] indicates that there is an edge between nodes ui and vi. Initially, all edges have…
leetcode.cn 2026-06-12
🔴3559.number-of-ways-to-assign-edge-weights-ii
🏷️ Tags
#bit_manipulation #tree #depth_first_search #array #math #dynamic_programming
🔴3559.number-of-ways-to-assign-edge-weights-ii
🏷️ Tags
#bit_manipulation #tree #depth_first_search #array #math #dynamic_programming
Telegraph
number-of-ways-to-assign-edge-weights-ii
给你一棵有 n 个节点的无向树,节点从 1 到 n 编号,树以节点 1 为根。树由一个长度为 n - 1 的二维整数数组 edges 表示,其中 edges[i] = [ui, vi] 表示在节点 ui 和 vi 之间有一条边。
leetcode.com 2026-06-12
🔴3559.number-of-ways-to-assign-edge-weights-ii
🏷️ Tags
#bit_manipulation #tree #depth_first_search #array #math #dynamic_programming
🔴3559.number-of-ways-to-assign-edge-weights-ii
🏷️ Tags
#bit_manipulation #tree #depth_first_search #array #math #dynamic_programming
Telegraph
number-of-ways-to-assign-edge-weights-ii
There is an undirected tree with n nodes labeled from 1 to n, rooted at node 1. The tree is represented by a 2D integer array edges of length n - 1, where edges[i] = [ui, vi] indicates that there is an edge between nodes ui and vi. Initially, all edges have…