上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 42 下一页

2022年11月24日

StringTable

摘要: 1.StringTable特性 2.StringTable位置 (多个jvm参数用空格分割) 3.StringTable垃圾回收 4.StringTable性能调优 1.通过设置桶个数-XX:StringTableSize=桶个数 ,(数字代表桶个数,本质是以空间换时间) 2.考虑将字符串对象是否入 阅读全文

posted @ 2022-11-24 17:44 HHHuskie 阅读(23) 评论(0) 推荐(0) 编辑

2022年11月22日

JVM组成结构

摘要: 1.程序计数器(Program Counter Register) 作用:记住下一条jvm指令的执行地址 特点:1.线程私有:每个线程有一个独立的程序计数器,随线程创建而创建,随线程结束而死亡。 2.无内存溢出(OutOfMemoryError):在编译时已经确定该线程代码的偏移量最大值,不会出现内 阅读全文

posted @ 2022-11-22 15:21 HHHuskie 阅读(19) 评论(0) 推荐(0) 编辑

2022年11月21日

Javac编译器

摘要: Javac编译器 Java技术下的编译期在不同的语境下会有不同的编译器实现产品: 1、前端编译器:jdk的javac、Eclipse JDT中的增量式编译器 2、即时编译器:hotspot虚拟机中的c1、c2编译器,graal编译器。 3、提前编译器:jdk的jaotc、gcj。 这里讨论javac 阅读全文

posted @ 2022-11-21 23:29 HHHuskie 阅读(186) 评论(0) 推荐(0) 编辑

799. 香槟塔

摘要: 799. 香槟塔 我们把玻璃杯摆成金字塔的形状,其中 第一层 有 1 个玻璃杯, 第二层 有 2 个,依次类推到第 100 层,每个玻璃杯 (250ml) 将盛有香槟。 从顶层的第一个玻璃杯开始倾倒一些香槟,当顶层的杯子满了,任何溢出的香槟都会立刻等流量的流向左右两侧的玻璃杯。当左右两边的杯子也满了 阅读全文

posted @ 2022-11-21 19:49 HHHuskie 阅读(202) 评论(0) 推荐(0) 编辑

数据库字符匹配

摘要: 阅读全文

posted @ 2022-11-21 17:54 HHHuskie 阅读(14) 评论(0) 推荐(0) 编辑

SQL35 浙大不同难度题目的正确率

摘要: select difficult_level, avg(if(qpd.result='right', 1, 0)) as correct_rate # sum(if(qpd.result='right', 1, 0)) / count(qpd.question_id) as correct_rate 阅读全文

posted @ 2022-11-21 17:38 HHHuskie 阅读(13) 评论(0) 推荐(0) 编辑

2022年11月19日

二叉树的统一迭代法

摘要: 迭代法前序遍历代码如下: class Solution { public List<Integer> preorderTraversal(TreeNode root) { List<Integer> result = new LinkedList<>(); Stack<TreeNode> st = 阅读全文

posted @ 2022-11-19 16:55 HHHuskie 阅读(15) 评论(0) 推荐(0) 编辑

二叉树的前、中、后序遍历(迭代版)

摘要: // 前序遍历顺序:中-左-右,入栈顺序:中-右-左 class Solution { public List<Integer> preorderTraversal(TreeNode root) { List<Integer> result = new ArrayList<>(); if (root 阅读全文

posted @ 2022-11-19 16:22 HHHuskie 阅读(19) 评论(0) 推荐(0) 编辑

2022年11月18日

二叉树的前序、中序、后序遍历

摘要: 144. 二叉树的前序遍历 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeN 阅读全文

posted @ 2022-11-18 21:14 HHHuskie 阅读(10) 评论(0) 推荐(0) 编辑

2022年11月17日

jdk版本切换

摘要: 注意:若版本切换失败,将%JAVA_HOME17%/bin置顶环境变量列表,如下图所示: 阅读全文

posted @ 2022-11-17 23:53 HHHuskie 阅读(15) 评论(0) 推荐(0) 编辑

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 42 下一页

导航