Skip to content

ShadrackOdielo/Data_structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Queue Implementation Using Two Stacks

This project implements a queue data structure using two stacks. It includes C source code files, a header file, and instructions for running the code on Windows and Linux.

Contributors

  • Shadrack Omondi Odielo - Reg No: SCT221-0479/2021
  • Giscard Njeru - Reg No: SCT221-0543/2021
  • Charles Ndiritu - Reg No: SCT221-0964/2021

Files

  1. library.h: Header file that declares the structures and functions used in the program.

  2. stack.c: Source code file containing the implementation of stack operations for pushing, popping, and checking emptiness. It also includes a structure to create a stack.

  3. queue.c: Source code file that implements a queue using two stacks. It includes enqueue, dequeue, and isEmpty functions, as well as a structure to create a queue.

  4. main.c: The main program file that demonstrates how to use the queue data structure with enqueue and dequeue operations.

Docstrings

library.h

// Function and structure declarations are documented in the header file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages