This commit is contained in:
ada-dmitry
2023-05-09 17:52:40 +03:00
parent 875630a713
commit 8fb559981e
57 changed files with 0 additions and 794 deletions
+24
View File
@@ -0,0 +1,24 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define N 3
#define LEN 8
typedef struct LinkList {
int x;
char name[LEN];
struct LinkList* next;
struct LinkList* prev;
} LinkList;
void linked_print(LinkList* l);
LinkList* add_tail(LinkList* l, LinkList node);
LinkList* add_head(LinkList* l, LinkList node);
LinkList* del_head(LinkList* l);
void del_tail(LinkList* l);
int len(LinkList* l);
LinkList get(LinkList* l, int n);
void tower_of_hanoi(int n, LinkList* start, LinkList* finish, LinkList* tmp);
void linked_free(LinkList* l);