1.数据结构 1.1.数组与字符串 54.螺旋矩阵:\(\star\star\) 59.螺旋矩阵 II:\(\star\star\) 121.买卖股票的最佳时机:\(\star\) 215.数组中的第K个最大元素:\(\star\star\star\) 1.2.哈希表 HashMap方法 1.两数之 ...
分类:
其他好文 时间:
2021-06-28 20:31:13
阅读次数:
0
常用 # 安装apk到手机 driver.install_app(app_path) 参数: app_path:脚本机器中APK的文件路径 # 手机中移除app driver.remove_app(app_id) 参数: app_id:需要卸载的app包名 # 判断app是否安装 driver.is ...
分类:
移动开发 时间:
2021-06-28 20:11:33
阅读次数:
0
https://leetcode-cn.com/problems/daily-temperatures/ 思路1: 使用单调递减栈 public int[] dailyTemperatures(int[] T) { if (T == null || T.length == 0) return nul ...
分类:
其他好文 时间:
2021-06-28 19:54:53
阅读次数:
0
递归找最小 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # ...
分类:
编程语言 时间:
2021-06-28 18:47:31
阅读次数:
0
搬个官方题解 class Solution { bool valid(const string& str) {//验证是否合法 int balance = 0; for (char c : str) { if (c == '(') { ++balance; } else { --balance; } ...
分类:
其他好文 时间:
2021-06-28 18:28:25
阅读次数:
0
package leetcode; import java.util.ArrayList; import java.util.List; public class demo_93 { public List<String> restoreIpAddresses(String s) { List<St ...
分类:
其他好文 时间:
2021-06-28 17:51:49
阅读次数:
0
1. 题目 1.1 英文题目 Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may ...
分类:
编程语言 时间:
2021-06-25 17:23:46
阅读次数:
0
/** * 自定义样式 * <p>1. 创建excel对应的实体对象 参照{@link DemoData} * <p>2. 创建一个style策略 并注册 * <p>3. 直接写即可 */ @Test public void styleWrite() { String fileName = Test ...
分类:
其他好文 时间:
2021-06-25 16:46:34
阅读次数:
0
贴上大佬的博客地址:https://labuladong.gitee.io/algo/2/18/20/ 这一部分总得来说比较简单,注意边界值的判断就行了。下面是贴上实际的代码 """ 翻转二叉树 https://leetcode-cn.com/problems/invert-binary-tree/ ...
分类:
其他好文 时间:
2021-06-25 16:45:06
阅读次数:
0
逐行入栈,排序后直接输出第k小的数据 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self. ...
分类:
编程语言 时间:
2021-06-25 16:32:21
阅读次数:
0