转载请注明出处: http://egoistk21.xyz/2016/09/06/Longest Substring Without Repeating Characters/ 最长无重字符子串 给定一个字符串,找到最长…
分类:LeetCode
copy-list-with-random-pointer
title: copy-list-with-random-pointer date: 2018-12-09 00:27:33 categories: LeetCode tags:[List] 描述: A linked l…
[LeetCode] Decode String 解码字符串
Given an encoded string, return it’s decoded string. The encoding rule is: k[encoded_string]…
LeetCode 015 3Sum
题目描述 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique …
LeetCode 344.反转字符串
题目描述 编写一个函数,其作用是将输入的字符串反转过来。 示例 1: 输入: "hello" 输出: "olleh" 示例 2: 输入: "A man, a plan, a canal: Panama" 输出: "ama…
Leetcode PHP题解--D27 620. Not Boring Movies
620. Not Boring Movies 题目链接 620. Not Boring Movies 题目分析 前面铺垫了那么多,要求就在这: movies with an odd numbered ID and a d…
TwoSum
题目大意: 找到数组中两个元素相加等于指定数的所有组合 情况一:给定数组中不含重复元素,且均为正整数 思路: 使用Hash表存储数组各元素是否存在的标志,然后遍历数组,判断…
[LeetCode] Paint House II 粉刷房子之二
There are a row of n houses, each house can be painted with one of the k colors. Th…
[LeetCode] Daily Temperatures 日常温度
Given a list of daily temperatures, produce a list that, for each day in the input, tells you how …
LeetCode | Valid Parentheses
题目: Given a string containing just the characters '(', ')', '{', '}', '[' and&nb…
LeetCode 066 Plus One
题目描述 Given a non-negative number represented as an array of digits, plus one to the number. The digits are sto…
[Leetcode] Count And Say 外观序列
Count And Say The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 11…