background picture of the home page

Hi,Friend

以技术为主流的博客系统

哈希表

1、快乐数 题目链接:https://leetcode.cn/problems/happy-number/description/ 我们可以看到如果有循环的话,直接就输出false就行,那么当我们遇到了要快速判断一个元素是否出现集合里的时候,就要考虑哈希法了。 方法一:哈希表 package com

thumbnail of the cover of the post

链表

1、环形链表 题目:https://leetcode.cn/problems/linked-list-cycle-ii/description/ ①使用哈希表 public class Solution { public ListNode detectCycle(ListNode head)

thumbnail of the cover of the post

Java-深拷贝

大家都知道java里面分为浅拷贝和深拷贝。举个简单的例子,区分一下浅拷贝和深拷贝的区别 public class Address{ private String address; public Address(String address){ this.addre

thumbnail of the cover of the post

PostgreSQl-数据库连接数

-- 最大连接数 show max_connections; -- 占用连接数 SELECT COUNT(*) FROM pg_stat_activity; -- 各个数据库占用的连接数 SELECT a.datname, COUNT(*) FROM pg_stat_activity as

thumbnail of the cover of the post

java-知识点-线程池-参数说明

java多线程开发时,常常用到线程池技术,这篇文章是对创建java线程池时的七个参数的详细解释。 从源码中可以看出,线程池的构造函数有7个参数 这 7 个参数分别是: corePoolSize:核心线程数。 maximumPoolSize:最大线程数。 keepAliveTime:空闲线程存活时间。

thumbnail of the cover of the post

java-知识点

大家好,给大家汇总了2024年最新的JAVA面经汇总,不过随着不断更新,大家也可以看更全的实时更新的10000+面经:https://link.youzhiwk.com/r/yDE

thumbnail of the cover of the post