上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页
摘要: 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)
摘要: // 方法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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 1、 (a) 通过top命令查看是否是因为mysql进程导致CPU和内存过高 (b) 利用查看当前正在执行的语句 show processlist:查看mysql中执行较多的SQL语句 阅读全文
posted @ 2020-09-25 19:15 枫叶艾辰 阅读(121) 评论(0) 推荐(0)
摘要: package com.example.lettcode.dailyexercises; /** * @Class InvertTree * @Description 226 * 翻转一棵二叉树。 * <p> * 示例: * 输入: * **** 4 * ** / \ * ** 2 7 * * / 阅读全文
posted @ 2020-09-16 14:54 枫叶艾辰 阅读(139) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 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 下一页