摘要: #include <stdio.h> #include <stdlib.h> #define MAX_VERTEX_NUM 100 // 最大节点数 // 邻接矩阵结构体 typedef struct { int vertex[MAX_VERTEX_NUM]; // 存储节点 int edge[MA 阅读全文
posted @ 2023-05-22 21:18 真绪无码 阅读(80) 评论(0) 推荐(0)
摘要: import java.util.function.Consumer; public class SinglyLinkedList {//烧饼版 private Node head = new Node(666,null);//头指针指向哨兵结点 private static class Node 阅读全文
posted @ 2023-04-03 21:28 真绪无码 阅读(29) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <stdlib.h>typedef struct Tree{ int data; struct Tree *lchild,*rchild;}Tree,*BiTree; BiTree CreateLink(){ int data; int temp 阅读全文
posted @ 2023-04-03 10:56 真绪无码 阅读(22) 评论(0) 推荐(0)