leetcode
刷子c
这个作者很懒,什么都没留下…
展开
-
LeetCode-454. 4Sum II
题目描述Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.To make problem a bit easier, all A, B, C, D have same l...原创 2019-10-01 22:01:18 · 60 阅读 · 0 评论 -
LeetCode-3. Longest Substring Without Repeating Characters
题目描述Given a string, find the length of the longest substring without repeating characters.Example 1:Input: “abcabcbb”Output: 3Explanation: The answer is “abc”, with the length of 3.Example 2...原创 2019-10-01 13:24:32 · 56 阅读 · 0 评论 -
LeetCode-415. Add Strings (Easy)
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.Note:The length of both num1 and num2 is < 5100.Both num1 and num2 contains only digits 0-9....原创 2019-09-29 22:51:25 · 51 阅读 · 0 评论 -
LeetCode-989. Add to Array-Form of Integer (Easy)
题目描述For a non-negative integer X, the array-form of X is an array of its digits in left to right order. For example, if X = 1231, then the array form is [1,2,3,1].Given the array-form A of a non-ne...原创 2019-09-29 21:17:30 · 66 阅读 · 0 评论 -
LeetCode-67. Add Binary (Easy)
题目描述Given two binary strings, return their sum (also a binary string).The input strings are both non-empty and contains only characters 1 or 0.Example 1:Input:a = “11”, b = “1”Output:“100”Ex...原创 2019-09-29 20:33:19 · 57 阅读 · 0 评论 -
LeetCode-2.Add Two Numbers (Medium)
题目描述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 contain a single digit. Add the two numbers and ret...原创 2019-09-29 20:14:00 · 61 阅读 · 0 评论