This commit is contained in:
ada-dmitry
2023-05-10 15:20:42 +03:00
parent 8fb559981e
commit c237cdd31a
7 changed files with 246 additions and 181 deletions
+23
View File
@@ -0,0 +1,23 @@
#define N 10
typedef struct Node
{
long int data;
struct Node *next;
struct Node *prev;
char s[N];
} node;
void pr(node *tmp);
node *add_head(node *head, int hh);
node *del_head(node *head);
int length(node *list);
node *sort(node *head);
node *get(node *list, int n);
void swap(node *a, node *b);
node *adv_add_head(node *head, int hh, char string[]);
void hanoi_tower(int n, node **head_from, node **head_to, node **head_aux, node **const tower1, node **const tower2, node **const tower3);
void printftof(node *head1, node *head2, node *head3);
node *end(node *head);
node *printextra(node *head, int len, int i);
int max(int a, int b);