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 / 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)
@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 / 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 / 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 / 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 / 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 / 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 / Binary Search Tree.c
Last active April 4, 2024 03:35
Binary Search Tree Implementation in C
/* Binary Search Tree Implementation in C */
/* Harish R */
#include<stdio.h>
#include<stdlib.h>
struct TreeNode
{
int data;
struct TreeNode* left;
@harish-r
harish-r / Binary Search Tree.cpp
Last active January 7, 2024 16:30
Binary Search Tree Implementation in C++
/*
** Binary Search Tree implementation in C++
** Harish R
*/
#include<iostream>
using namespace std;
class BST {
struct node {
@harish-r
harish-r / openstack_kolla.sh
Last active February 26, 2017 08:08
Openstack Kolla Install
#! /bin/bash
# Script to install Openstack Kolla (Mitaka Release) in Ubuntu 16.04
# Script START
# Upgrade to latest kernel
apt-get install -y linux-image-generic-lts-wily
# Update packages
sudo apt-get update
# Install depenedencids
sudo apt-get install -y curl wget python-pip python-dev libffi-dev gcc libssl-dev ntp
# Install Dockr