Skip to content

Instantly share code, notes, and snippets.

View miladabc's full-sized avatar
:bowtie:
Breathing

Milad Abbasi miladabc

:bowtie:
Breathing
View GitHub Profile
@miladabc
miladabc / circularSinglyLinkedList.cpp
Created July 7, 2018 16:29
Circular Singly Linked List
//Milad Abbasi
//06-07-2018
//Circular Singly Linked List
#include <iostream>
using namespace std;
struct Node
{
int data;
@miladabc
miladabc / circularQueueArray.cpp
Created July 7, 2018 16:30
Circular Queue implementation with Array
//Milad Abbasi
//06-07-2018
//Circular Queue implementation with Array
#include <iostream>
#define MAX 5
using namespace std;
class CQueue
{
@miladabc
miladabc / cirqularQueueLinkedList.cpp
Created July 7, 2018 16:31
Circular Queue implementation with Linked List
//Milad Abbasi
//06-07-2018
//Circular Queue implementation with Linked List
#include<iostream>
#define SIZE 100
using namespace std;
@miladabc
miladabc / doublyLinkedList.cpp
Created July 7, 2018 16:32
Doubly Linked List
//Milad Abbasi
//06-07-2018
//Doubly Linked List
#include <iostream>
using namespace std;
class Node
{
public:
@miladabc
miladabc / headNodeLinkedList.cpp
Created July 7, 2018 16:33
Head Node Linked List
//Milad Abbasi
//06-07-2018
//Head Node Linked List
#include <iostream>
using namespace std;
struct Node
{
int data;
@miladabc
miladabc / queue2StacksArray.cpp
Created July 7, 2018 16:33
Implementation of Queue with 2 array Stacks
//Milad Abbasi
//06-07-2018
//Implementation of Queue with 2 array Stacks
#include <iostream>
using namespace std;
#define MAX_SIZE 5
class Stack
@miladabc
miladabc / queueArray.cpp
Created July 7, 2018 16:34
Queue implementation with Array
//Milad Abbasi
//06-07-2018
//Queue implementation with Array
#include<iostream>
using namespace std;
#define MAX_SIZE 5
class Queue
{
@miladabc
miladabc / queueLinkedList.cpp
Created July 7, 2018 16:34
Queue implementation with Linked List
//Milad Abbasi
//06-07-2018
//Queue implementation with Linked List
#include <iostream>
using namespace std;
class Node
{
public:
@miladabc
miladabc / singlyLinkedList.cpp
Created July 7, 2018 16:35
Singly Linked List
//Milad Abbasi
//06-07-2018
//Singly Linked List
#include <iostream>
using namespace std;
class Node
{
public:
@miladabc
miladabc / stackArray.cpp
Created July 7, 2018 16:35
Stack implementation with Array
//Milad Abbasi
//06-07-2018
//Stack implementation with Array
#include <iostream>
using namespace std;
#define MAX_SIZE 1000
class Stack