标签: leetcode
-
2.两数相加
题目描述:给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它…
-
961-重复 N 次的元素
在大小为 2N 的数组 A 中有 N+1 个不同的元素,其中有一个元素重复了 N 次。 返回重复了 N 次的那…
-
962-最大宽度坡
给定一个整数数组 A,坡是元组 (i, j),其中 i < j 且 A[i] <= A[j]。这样…
-
1.两数之和
题目:给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并…
-
树(2)
Given a binary tree and a sum, find all root-to-leaf pa…
-
leetcode讲解–728. Self Dividing Numbers
A self-dividing number is a number that is divisible by…
-
leetcode讲解–797. All Paths From Source to Target
Given a directed, acyclic graph of N nodes. Find all po…
-
leetcode讲解–852. Peak Index in a Mountain Array
Let’s call an array A a mountain if the following prope…
-
leetcode讲解–617. Merge Two Binary Trees
Given two binary trees and imagine that when you put on…
-
leetcode讲解–921. Minimum Add to Make Parentheses Valid
Given a string S of ‘(‘ and ‘)’ parentheses, we add the…