This commit is contained in:
ada-dmitry
2023-05-10 15:50:49 +03:00
parent c237cdd31a
commit 350c719381
4 changed files with 66 additions and 66 deletions
+13 -13
View File
@@ -6,18 +6,18 @@ typedef struct Node
struct Node *next;
struct Node *prev;
char s[N];
} node;
} tower;
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);
void pr(tower *tmp);
tower *add_head(tower *crown, int hh);
tower *del_head(tower *crown);
int length(tower *list);
tower *sort(tower *crown);
tower *get(tower *list, int n);
void swap(tower *a, tower *b);
tower *adv_add_head(tower *crown, int hh, char string[]);
void hanoi_tower(int n, tower **head_from, tower **head_to, tower **head_aux, tower **const tower1, tower **const tower2, tower **const tower3);
void printftof(tower *head1, tower *head2, tower *head3);
tower *end(tower *crown);
tower *printextra(tower *crown, int len, int i);
int max(int a, int b);