www

导航

上一页 1 2 3 4 5 6 ··· 9 下一页

2020年9月27日 #

回溯-最近公共祖先

摘要: package tree; public class CommonAncestor { /** * 定义TreeNode */ private static class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x 阅读全文

posted @ 2020-09-27 18:01 www_practice 阅读(113) 评论(0) 推荐(0) 编辑

2020年9月21日 #

广度遍历-二叉树最小深度

摘要: package bfs; import java.util.LinkedList; import java.util.Queue; public class TreeMinDepth { /** * 定义TreeNode */ private static class TreeNode { int 阅读全文

posted @ 2020-09-21 16:23 www_practice 阅读(160) 评论(0) 推荐(0) 编辑

2020年9月17日 #

滑动窗口-最小子串

摘要: package slidewindow; import java.util.HashSet; import java.util.Set; public class MinSubstring { static String minWindow(String s, String t) { // 参数校验 阅读全文

posted @ 2020-09-17 14:35 www_practice 阅读(202) 评论(0) 推荐(0) 编辑

2020年9月16日 #

动态规划-最短编辑距离

摘要: package dynamic; public class EditDistance { // 最短编辑距离,动态规划 static int minDistance(String s1, String s2) { int m = s1.length(), n = s2.length(); // dp 阅读全文

posted @ 2020-09-16 19:58 www_practice 阅读(207) 评论(0) 推荐(0) 编辑

回溯-全排列(重复字符)

摘要: package backtrack; import java.util.*; // 关键点:剪枝,树的每层表示字符串的某一位置,不能重复 public class Permute { private static List<String> res = new ArrayList<>(); priva 阅读全文

posted @ 2020-09-16 17:56 www_practice 阅读(174) 评论(0) 推荐(0) 编辑

2020年9月15日 #

数据库连接池

摘要: https://blog.csdn.net/guobinhui/article/details/85157805 阅读全文

posted @ 2020-09-15 17:57 www_practice 阅读(134) 评论(0) 推荐(0) 编辑

服务器开发中网络故障排查

摘要: A.操作系统提供的网络接口 为了能更好的排查网络通信问题,我们需要熟悉操作系统提供的以下网络接口函数,列表如下: // 创建套接字 int socket(int domain, int type, int protocol); // 连接一个服务器地址 int connect(int sockfd, 阅读全文

posted @ 2020-09-15 16:59 www_practice 阅读(493) 评论(0) 推荐(0) 编辑

2020年9月11日 #

深入剖析Linux IO原理和几种零拷贝机制的实现

摘要: 前言 零拷贝(Zero-copy)技术指在计算机执行操作时,CPU 不需要先将数据从一个内存区域复制到另一个内存区域,从而可以减少上下文切换以及 CPU 的拷贝时间。它的作用是在数据报从网络设备到用户程序空间传递的过程中,减少数据拷贝次数,减少系统调用,实现 CPU 的零参与,彻底消除 CPU 在这 阅读全文

posted @ 2020-09-11 15:51 www_practice 阅读(455) 评论(2) 推荐(0) 编辑

Kafka消费者:从Kafka中读取数据

摘要: https://blog.csdn.net/shmily_lsl/article/details/81877447 阅读全文

posted @ 2020-09-11 15:29 www_practice 阅读(307) 评论(0) 推荐(0) 编辑

Linux下查看进程和端口信息

摘要: Linux下查看进程和端口信息 1、根据进程名查看进程信息,以查看tomcat进程名为例,查看所对应的进程id为1095(或者使用: ps -aux | grep tomcat 查看占用内存等信息) ps -ef | grep tomcat 2、根据进程id查看进程占用端口,查看对应端口为8080( 阅读全文

posted @ 2020-09-11 14:34 www_practice 阅读(530) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 9 下一页