priority queue with linked list
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: PQLL_Mahato.h * Author: Aaditya * * Created on April 7, 2020, 9:44 PM */ #ifndef PQLL_MAHATO_H #define PQLL_MAHATO_H #ifdef __cplusplus extern "C" { #endif ///Node typedef struct node { char data; //Lower values indicate higher priority int priority; struct node* next; } Node; int peek(Node** head); void dequeue(Node** head); void enqueue(Node** head, char d, int p); int isEmpty(Node** head); Node* newNode(char d, int p); #ifdef __cplusplus } #endif #endif /* PQLL_MAHATO_H */