Skip to content

Instantly share code, notes, and snippets.

View harish-r's full-sized avatar

Harish R harish-r

  • A10 Networks, Inc.
  • San Jose, CA
View GitHub Profile
@harish-r
harish-r / AVL Tree.cpp
Created October 18, 2014 11:11
AVL Tree Implementation in C++. Self Balancing Tree
/* AVL Tree Implementation in C++ */
/* Harish R */
#include<iostream>
using namespace std;
class BST
{
@harish-r
harish-r / Queue - Linked List Implementation.cpp
Created September 7, 2014 08:12
Queue - Linked List Implementation in C++
// Queue - Linked List Implementation
#include<iostream>
using namespace std;
class Node
{
public:
int data;
Node *next;
@harish-r
harish-r / Queue - Array Implementation.cpp
Created September 7, 2014 08:06
Queue Array Implementation in C++
#include<iostream>
#define MAX 5
using namespace std;
class Queue
{
public:
int front, rear;
int queue_array[MAX];
@harish-r
harish-r / Stack - Array Implementation.cpp
Last active August 29, 2015 14:06
Stack - Array implementation in C++
/* Stack - Array Implementation */
/* Language: C++ */
/* Created By: Harish R */
#include<iostream>
#define MAX 10
using namespace std;
class Stack
@harish-r
harish-r / Linked List.cpp
Created September 6, 2014 07:18
Linked List Implementation in C++
// Linked List CPP
#include<iostream>
using namespace std;
class Node
{
public:
int data;
Node *next;
@harish-r
harish-r / Quick Sort.cpp
Created April 7, 2014 18:02
Quick Sort Algorithm in C++
/*
* Quick Sort Algorithm
* Language: C++
* Created by: Harish R
*/
#include<iostream>
using namespace std;
@harish-r
harish-r / Merge Sort.c
Last active September 21, 2019 03:29
Merge Sort Algorithm in C++
/*
* Merge Sort Algorithm
* Language: C++
* Created by: Harish R
*/
#include <stdio.h>
#include <stdlib.h>
void merge(int *a, int *l, int nL, int *r, int nR)