81. Search in Rotated Sorted Array II 题目 Follow up for "Search in Rotated Sorted Array": What if duplicates ar…
分类:LeetCode
71. Simplify Path
71. Simplify Path 题目 Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/"…
[LeetCode] Find All Duplicates in an Array 找出数组中所有重复项
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear …
LeetCode 22. Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For ex…
力扣(LeetCode) -146 LRU缓存机制
本题考察的LRU缓存机制,HashMap和链表 题目描述 运用你所掌握的数据结构,设计和实现一个 LRU (最近最少使用) 缓存机制。它应该支持以下操作: 获取数据 get 和 写入数据 put 。 获取数据 get(k…
Leetcode 227. Basic Calculator II
Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-n…
[LeetCode By Go 22]Add to List 371. Sum of Two Integers
题目 Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example: Gi…
[LeetCode] Regular Expression Matching 正则表达式匹配,Wildcard Matching
Given an input string (s) and a pattern (p), implement regular expression matching with support for&nbs…
[LeetCode] First Bad Version 第一个坏版本
You are a product manager and currently leading a team to develop a new product. Unfortunately, the lat…
[LeetCode] Design Twitter 设计推特
Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is…
LeetCode 075 Sort Colors
题目描述 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are…
【leetcode】61. Rotate List
1. 题目 Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1->…