🔝 LeetCode题目综述

主要使用语言:Python|次要使用语言:Java,Go,C/C++
官方网址:https://leetcode-cn.com/problems/
解题网址:https://www.yuque.com/3cl1p53/leetcode

[2] Add Two Numbers

|难度:Medium|标签:Linked List, Math|
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself.

Constraints:

  • The number of nodes in each linked list is in the range [1, 100].
  • 0 <= Node.val <= 9
  • It is guaranteed that the list represents a number that does not have leading zeros.

[1, 15, 18] N Sum

|难度:Easy|标签:Array, Hash Table
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.You may assume that each input would have exactly one solution, and you may not use the same element twice.You can return the answer in any order.

Constraints:

  • 2 <= nums.length <= 105
  • -109 <= nums[i] <= 109
  • -109 <= target <= 109
  • Only one valid answer exists.