【Description】
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.
The function twoSum should return indi...
404. Sum of Left Leaves
【题目】中文版 英文版
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeN...
Difficulty: Easy
More:【目录】LeetCode Java实现
Description
https://leetcode.com/problems/sum-of-square-numbers/submissions/
Given a non-negative integer c, your task is to decide whethe...
【LeetCode】129. Sum Root to Leaf Numbers 解题报告(Python)
标签(空格分隔): LeetCode
题目地址:https://leetcode.com/problems/sum-root-to-leaf-numbers/description/
题目描述:
Given a binary tre...
问题描述:
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one soluti...
LeetCode很喜欢sum,里面sum题一堆。
1.Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would...
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers.
Example 1:
Input: k = ...