
#1、两个栈实现一个队列 力扣:剑指 Offer 09. 用两个栈实现队列 答案: s1是入栈的,s2是出栈的。 入队列:直接压入s1即可 出队...
用最少的箭头射爆气球 https://leetcode.cn/problems/minimum-number-of-arrows-to-burs...
##无重复区间: https://leetcode.cn/problems/non-overlapping-intervals/ 1、动态规划 ...
完全二叉树( Complete Binary Tree ),是指对于一棵二叉树,若该二叉树的深度为h,除了第h层外,其他的各个层(1~h-1)的...
单调栈: 下一个更高温度:https://leetcode.cn/problems/daily-temperatures/description...
###环判断 ##1、快乐数-hash表 class Solution { private int getNext(int n) { ...
##1、最长回文子串 https://leetcode.cn/problems/longest-palindromic-substring/ c...
##1、滑动窗口算法过程: 定义两个指针:left = right = 0 开始让right向右移动,并判断[left, right)间的数是否...
##一、中序遍历:左根右 class Solution { public List inorderTraversal(TreeNode r...