随笔分类 -  数据结构

摘要: 阅读全文
posted @ 2023-12-14 22:48 哩哩1 阅读(4) 评论(0) 推荐(0)
摘要:package com; import java.util.Stack; public class BracketsMatchTest { public static void main(String[] args) { String srt = "((上海))())"; boolean match 阅读全文
posted @ 2023-12-13 22:15 哩哩1 阅读(10) 评论(0) 推荐(0)
摘要:package com; public class JosephTest { public static void main(String[] args) { //解决约瑟夫问题 //1.构建循环链表 包含41个结点 Node<Integer> first = null; //记录首节点 Node< 阅读全文
posted @ 2023-12-13 20:38 哩哩1 阅读(8) 评论(0) 推荐(0)
摘要:当slow指针和temp指针相遇时,就是环的入口 阅读全文
posted @ 2023-12-08 22:34 哩哩1 阅读(6) 评论(0) 推荐(0)
摘要:快慢指针相遇, 说明有环 阅读全文
posted @ 2023-12-08 19:47 哩哩1 阅读(7) 评论(0) 推荐(0)
摘要:快指针到终点时,慢指针为链表一半 阅读全文
posted @ 2023-12-08 19:41 哩哩1 阅读(4) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-12-08 18:27 哩哩1 阅读(10) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-12-07 18:56 哩哩1 阅读(9) 评论(0) 推荐(0)
摘要:. 阅读全文
posted @ 2023-12-04 20:45 哩哩1 阅读(16) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-12-02 18:54 哩哩1 阅读(4) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-11-29 19:39 哩哩1
摘要: 阅读全文
posted @ 2023-11-29 19:25 哩哩1 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-11-29 19:23 哩哩1 阅读(7) 评论(0) 推荐(0)
摘要:`` 点击查看代码 import java.util.Scanner; public class Main { public static int[] a = new int[10]; public static void main(String[] args) { Scanner s = new 阅读全文
posted @ 2023-10-31 23:17 哩哩1 阅读(16) 评论(0) 推荐(0)