#1、两个栈实现一个队列 力扣:剑指 Offer 09. 用两个栈实现队列 答案: s1是入栈的,s2是出栈的。 入队列:直接压入s1即可 出队列:如果s2不为空,把s2中的...

#1、两个栈实现一个队列 力扣:剑指 Offer 09. 用两个栈实现队列 答案: s1是入栈的,s2是出栈的。 入队列:直接压入s1即可 出队列:如果s2不为空,把s2中的...
用最少的箭头射爆气球 https://leetcode.cn/problems/minimum-number-of-arrows-to-burst-balloons/ int...
##无重复区间: https://leetcode.cn/problems/non-overlapping-intervals/ 1、动态规划 class Solution ...
完全二叉树( Complete Binary Tree ),是指对于一棵二叉树,若该二叉树的深度为h,除了第h层外,其他的各个层(1~h-1)的节点数都达到了最大个数,且第h...
单调栈: 下一个更高温度:https://leetcode.cn/problems/daily-temperatures/description/ class Solutio...
###环判断 ##1、快乐数-hash表 class Solution { private int getNext(int n) { int totalSum =...
##1、最长回文子串 https://leetcode.cn/problems/longest-palindromic-substring/ class Solution {...
##1、滑动窗口算法过程: 定义两个指针:left = right = 0 开始让right向右移动,并判断[left, right)间的数是否满足要求,right向右移动,...
##一、中序遍历:左根右 class Solution { public List inorderTraversal(TreeNode root) { List...
##1、课程表 (BFS广度遍历) https://leetcode.cn/problems/course-schedule/description/ class Solut...
##二叉树最小深度 class Solution { class QueueNode { TreeNode node; int depth; pu...
砍价系统中台组件建设
https://blog.csdn.net/fox9916/article/details/128522598 AbstractBeanFactoryPointcutAdvisor
一、SWOT分析法: S(strengths)是优势、W(weaknesses)是劣势、O(opportunities)是机会、T(threats)是威胁 对研究对象所处的情...
1、岛屿的最大面积 https://leetcode.cn/problems/ZL6zAn/[https://leetcode.cn/problems/ZL6zAn/]cla...
1、分割回文串 https://leetcode.cn/problems/palindrome-partitioning/[https://leetcode.cn/probl...
1、全排列 https://leetcode.cn/problems/permutations/[https://leetcode.cn/problems/permutati...
组合(子集)总结 Arrays.sort(nums);//排序总结就是,都是基于最基础的【子集】的流程框架,对于i的位置,即对【下一个选择列表】进行了不同的处理而已。原始数据...
rr
ss