1. 题目 Given a string S and a string T, find the minimum window in S which will contain all the characters in T…
标签:LeetCode题目解答
32. Longest Valid Parentheses
32. Longest Valid Parentheses 题目 Given a string containing just the characters '(' and ')', find the length of…
14. Longest Common Prefix
14. Longest Common Prefix 题目 Write a function to find the longest common prefix string amongst an array of str…
148. Sort List
欢迎fork and star:Nowcoder-Repository-github 148. Sort List 题目 Sort a linked list in O(n log n) time using const…
[LeetCode] Sliding Window Maximum 滑动窗口最大值
Given an array nums, there is a sliding window of size k which is moving from the very l…
74. Search a 2D Matrix
74. Search a 2D Matrix 题目 Write an efficient algorithm that searches for a value in an m x n matrix. This matr…
67. Add Binary
67. Add Binary 题目 Given two binary strings, return their sum (also a binary string). For example, a = "11" b =…
[LeetCode] Find Median from Data Stream 找出数据流的中位数
Median is the middle value in an ordered integer list. If the size of the list is even, there is no mid…
[LeetCode] Valid Palindrome II 验证回文字符串之二
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palin…
LeetCode 003 Longest Substring Without Repeating Characters
题目描述 Given a string, find the length of the longest substring without repeating characters. For example, the l…
力扣(LeetCode)146
题目地址:https://leetcode-cn.com/probl…题目描述:运用你所掌握的数据结构,设计和实现一个 LRU (最近最少使用) 缓存机制。它应该支持以下操作: 获取数据 get 和 写入数据…
LeetCode 59. Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Gi…