Skip to content

Instantly share code, notes, and snippets.

View vineethak's full-sized avatar
🎯
Focusing

Vineetha Kondameedi vineethak

🎯
Focusing
  • IID
  • Quebec
View GitHub Profile
@vineethak
vineethak / graph.cpp
Last active April 28, 2017 11:42
simple generic graph class. which can be included as .h file in other graph related functions and can be used for any application related to graphs.
#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
template <class T>
struct s_vertex{
@vineethak
vineethak / bst.cpp
Created April 27, 2017 09:12
A simple cpp code for binarysearch tree implementation. Input should be (i) insert <num> (ii) find <num> (iii) inOrder <num>
#include <iostream>
#include <vector>
#include <cstdlib>
#include <string>
using namespace std;
template <class T>
struct Node{
T val;