8 remove prev

This commit is contained in:
NaiJi ✨ 2024-04-26 17:31:39 +04:00
parent f4b4efbfae
commit a57e112b89
1 changed files with 0 additions and 2 deletions

View File

@ -9,7 +9,6 @@ typedef struct node
{ {
int value; int value;
struct node *next; struct node *next;
struct node *prev;
} Node; } Node;
typedef struct typedef struct
@ -31,7 +30,6 @@ BOOL enqueue(int value)
return FALSE; return FALSE;
new_head->value = value; new_head->value = value;
new_head->prev = HEAD;
if (HEAD != NULL) if (HEAD != NULL)
HEAD->next = new_head; HEAD->next = new_head;