img

咖啡与代码

咖灰怪’s Blog

“当你发现自己的才华撑不起野心时,就请安静下来学习吧。”
LeetCode刷题之5:Longest Substring Without Repeating Characters(3)
2018-02-07 14:42    学习笔记 数据结构和算法    2177 阅读    0条回复

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 ...

LeetCode刷题之4:Valid Parentheses(20)
2018-02-06 14:42    学习笔记 数据结构和算法    2196 阅读    0条回复

1. 题目 1.1 英文 Given a string containing just the characters '(' , ')' , '{' , '}' , '[' and ']' , determine if the input string is valid. The brackets mu...

LeetCode刷题之3:Palindrome Number(9)
2018-02-01 17:01    学习笔记 数据结构和算法    2012 阅读    0条回复

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...

LeetCode刷题之2:Reverse Integer(7)
2018-01-25 15:41    学习笔记 数据结构和算法    2225 阅读    0条回复

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刷题之1:Two Sum(1)
2018-01-24 14:17    学习笔记 数据结构和算法    2096 阅读    0条回复

准备定期刷一刷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...