1. 题目 1.1 英文 Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb" , the answer is "abc" , which the length is 3. Given ...
1. 题目 1.1 英文 Given a string containing just the characters '(' , ')' , '{' , '}' , '[' and ']' , determine if the input string is valid. The brackets mu...
1. 题目 1.1 英文 Determine whether an integer is a palindrome. Do this without extra space. Some hints : Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to s...
1. 题目 Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are dealing wi...
准备定期刷一刷LeetCode上的题目,并且做一做笔记,这是第一篇。算法实现将采用Go语言。 1. 题目 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...