Skip to content

Instantly share code, notes, and snippets.

View achlendra's full-sized avatar

Achlendra Raj achlendra

View GitHub Profile
@achlendra
achlendra / stack (via linked list).cpp
Created October 29, 2016 16:57
stack implementation using linked list.
#include <iostream>
using namespace std;
struct Node{
int data;
Node *next;
};
class stack{
@achlendra
achlendra / stack (via array).cpp
Created October 27, 2016 17:20
stack implemented via array
#include <iostream>
#define msize 101
using namespace std;
class Stack{
private:
int A[msize];
int top;
public:
Stack(){