Skip to content

Instantly share code, notes, and snippets.

View ldclakmal's full-sized avatar
🎯
Focusing

Chanaka Lakmal ldclakmal

🎯
Focusing
View GitHub Profile
@ldclakmal
ldclakmal / Queue.cpp
Created January 24, 2015 16:02
Queue using Linked List
// LinkedList_OOP_Queue.cpp : Defines the entry point for the console application.
// L.D.C.Lakmal
#include "stdafx.h"
#include <iostream>
using namespace std;
typedef int E;
class Node {
@ldclakmal
ldclakmal / Stack.cpp
Created January 24, 2015 16:01
Stack using Linked List
// LinkedList_OOP_Stack.cpp : Defines the entry point for the console application.
// L.D.C.Lakmal
#include "stdafx.h"
#include <iostream>
using namespace std;
typedef int E;
class Node {
@ldclakmal
ldclakmal / LinkedList.cpp
Created January 24, 2015 16:01
Linked List (OOP)
// LinkedList_OOP.cpp : Defines the entry point for the console application.
// L.D.C.Lakmal
#include "stdafx.h"
#include <iostream>
using namespace std;
typedef int E;
class Node {
@ldclakmal
ldclakmal / MergeSort.cpp
Created January 24, 2015 16:00
Merge Sort
// MergeSort.cpp : Defines the entry point for the console application.
// L.D.C.Lakmal
#include "stdafx.h"
#include <stdio.h>
#include <iostream>
#include <limits.h>
#define arrSize 6
using namespace std;
@ldclakmal
ldclakmal / InsertionSort.cpp
Created January 24, 2015 15:58
Insertion Sort
// InsertionSort.cpp : Defines the entry point for the console application.
// input.txt file should be here.
// L.D.C.Lakmal
#include "stdafx.h"
#include <stdio.h>
#include <iostream>
#include <fstream>
using namespace std;