
数据结构
LazyICer
这个作者很懒,什么都没留下…
展开
-
输入两个链表,寻找其公共结点
/* find_first_common_node.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundati原创 2020-10-14 16:56:04 · 95 阅读 · 0 评论 -
判断一个整数序列是否是另一个整数序列的出栈顺序
/* is_pop_order.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either原创 2020-10-14 16:54:20 · 145 阅读 · 0 评论 -
输入一个链表,反转链表后,输出新链表的表头
/* reverse_link_list.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; e原创 2020-10-14 16:52:06 · 107 阅读 · 0 评论 -
用两个栈来实现一个队列,完成队列的Push和Pop操作
/* queue.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either versio原创 2020-10-14 16:50:03 · 270 阅读 · 0 评论 -
队列的顺序存储结构实现
/* sq_queue.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either ver原创 2020-10-14 15:06:05 · 182 阅读 · 0 评论 -
栈的顺序存储结构实现
#include <stdio.h>#define MAX_STACK_SIZE (100)typedef int ELEM_TYPE;typedef struct _sq_stack{ ELEM_TYPE data[MAX_STACK_SIZE]; int top;} sq_stack;void sq_stack_init(sq_stack* stack){ stack->top = -1; return ;}int inline原创 2020-10-14 14:50:50 · 144 阅读 · 0 评论 -
线性表的顺序存储结构实现
线性表的顺序存储结构实现#include <stdio.h>#define SQ_LIST_MAX_SIZE (100)typedef int ELEM_TYPE;typedef struct _sq_list{ ELEM_TYPE data[SQ_LIST_MAX_SIZE ]; int len;} sq_list;void clear_sq_list(sq_list list){ list.len = 0;}int sq_list_get_elem(sq_原创 2020-10-12 23:45:34 · 177 阅读 · 0 评论 -
线性表的单链式存储结构实现
线性表C语言实现/* The industrial I/O core * * Copyright (c) 2020 Leizhen@xmu.ese * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software原创 2020-10-10 08:56:49 · 133 阅读 · 0 评论