会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
枫叶艾辰
博客园
首页
新随笔
管理
上一页
1
···
12
13
14
15
16
17
18
19
20
···
22
下一页
2020年11月3日
leetcode 941 有效的山脉数组
摘要: public static boolean validMountainArray(int[] A) { if (A == null || A.length <= 2) { return false; } // idx表示分水岭 int idx = 0; // 单调递增 while (idx + 1
阅读全文
posted @ 2020-11-03 09:47 枫叶艾辰
阅读(82)
评论(0)
推荐(0)
2020年11月2日
leetcode 349 两个数组的交集
摘要: // 方法1 public static int[] intersection(int[] nums1, int[] nums2) { if (nums1 == null || nums1.length == 0 || nums2 == null || nums2.length == 0) { re
阅读全文
posted @ 2020-11-02 10:53 枫叶艾辰
阅读(86)
评论(0)
推荐(0)
2020年10月17日
leetcode 977 有序数组的平方
摘要: package com.example.lettcode.dailyexercises; /** * @Class SortedSquares * @Description 977 有序数组的平方 * @Author * @Date 2020/10/16 **/ public class Sorte
阅读全文
posted @ 2020-10-17 09:47 枫叶艾辰
阅读(69)
评论(0)
推荐(0)
2020年10月14日
leetcode 1002 查找常用字符串
摘要: package com.example.lettcode.dailyexercises; import java.util.*; /** * @Class CommonChars * @Description 1002 查找常用字符串 * @Author * @Date 2020/10/14 **/
阅读全文
posted @ 2020-10-14 10:55 枫叶艾辰
阅读(257)
评论(0)
推荐(0)
2020年10月11日
lettcode 141/142 环形链表
摘要: package com.example.lettcode.dailyexercises; /** * @Class DetectCycle * @Description TODO * @Author * @Date 2020/10/10 **/ public class DetectCycle {
阅读全文
posted @ 2020-10-11 10:09 枫叶艾辰
阅读(90)
评论(0)
推荐(0)
2020年9月25日
优化
摘要: 1、 (a) 通过top命令查看是否是因为mysql进程导致CPU和内存过高 (b) 利用查看当前正在执行的语句 show processlist:查看mysql中执行较多的SQL语句
阅读全文
posted @ 2020-09-25 19:15 枫叶艾辰
阅读(121)
评论(0)
推荐(0)
2020年9月16日
leetcode 226 翻转一棵二叉树
摘要: package com.example.lettcode.dailyexercises; /** * @Class InvertTree * @Description 226 * 翻转一棵二叉树。 * <p> * 示例: * 输入: * **** 4 * ** / \ * ** 2 7 * * /
阅读全文
posted @ 2020-09-16 14:54 枫叶艾辰
阅读(139)
评论(0)
推荐(0)
2020年9月15日
Linux top命令详解
摘要: top命令是Linux下常用的性能分析工具 第一行:任务队列信息,同 uptime 命令的执行结果 系统时间:10:16:31 运行时间:up 5 days, 当前登录用户: 7 user 负载均衡(uptime) load average: 1.16, 1.28, 1.39 average后面的三
阅读全文
posted @ 2020-09-15 10:46 枫叶艾辰
阅读(723)
评论(0)
推荐(0)
2020年9月13日
面试题
摘要: 1.JDK 和 JRE 有什么区别? 2.== 和 equals 的区别是什么? 3.两个对象的 hashCode()相同,则 equals()也一定为 true,对吗? 4.final 在 java 中有什么作用? 5.java 中的 Math.round(-1.5) 等于多少? 6.String
阅读全文
posted @ 2020-09-13 09:12 枫叶艾辰
阅读(90)
评论(0)
推荐(0)
2020年9月11日
leetcode 77 组合
摘要: package com.example.lettcode.dailyexercises; import java.util.ArrayList; import java.util.List; /** * @Class Combine * @Description 77 组合 * 给定两个整数 n 和
阅读全文
posted @ 2020-09-11 20:25 枫叶艾辰
阅读(140)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
22
下一页
公告