LeetCode
文章平均质量分 58
小李34234324
爱好Data Structures, Algorithms, Python/C++/Java/JavaScript/Scala/Golang, Machine Learning, AI, 大数据等
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 239. Sliding Window Maximum. Hard。tags: 单调队列
题目:You are given an array of integersnums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position.Re.原创 2022-04-13 11:09:14 · 140 阅读 · 0 评论 -
LeetCode 739. Daily Temperatures. tags: 单调栈。 中等难度
Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warmer temperature. If there is no future day for which this is possible原创 2022-04-11 22:39:30 · 455 阅读 · 0 评论 -
LeetCode 20. Valid Parentheses。easy, tag: stack
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:Open brackets must be closed by the same type of brackets.Open brackets must be closed in the correct..原创 2022-04-11 15:08:38 · 352 阅读 · 0 评论 -
LeetCode 438. Find All Anagrams in a String. Tags: 滑动窗口sliding window,hash table
题目链接:力扣Given two strings s and p, return an array of all the start indices of p's anagrams in s. You may return the answer in any order.An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using原创 2022-03-21 16:11:31 · 995 阅读 · 0 评论 -
LeetCode 133. Clone Graph。 tag: 图,bfs, hash map。
题目:力扣Given a reference of a node in a connected undirected graph.Return a deep copy (clone) of the graph.Each node in the graph contains a value (int) and a list (List[Node]) of its neighbors.class Node { public int val; public List<No...原创 2022-03-19 20:43:39 · 681 阅读 · 0 评论
分享