Skip to content

Instantly share code, notes, and snippets.

View varshneydevansh's full-sized avatar
🧠
No Study No Confusion, More Study More Confusion

Devansh Varshney (देवांश वार्ष्णेय) varshneydevansh

🧠
No Study No Confusion, More Study More Confusion
View GitHub Profile
@varshneydevansh
varshneydevansh / SegmentTree.cpp
Created January 1, 2018 12:39
Segment Tree implementation in C++
#include <iostream>
#include <math.h>
#include <vector>
#include <cstdio>
using namespace std;
#define RSUM 0
#define RMIN 1
#define RMAX 2
vector<int> mytree;
@varshneydevansh
varshneydevansh / SegmentTree.cpp
Created January 1, 2018 12:39
Segment Tree implementation in C++
#include <iostream>
#include <math.h>
#include <vector>
#include <cstdio>
using namespace std;
#define RSUM 0
#define RMIN 1
#define RMAX 2
vector<int> mytree;
@varshneydevansh
varshneydevansh / quickSort.C
Last active December 13, 2017 07:27
Quick sort using file handling in C++
/*---------------------------------------------------------------------------------.
Implementation of QUICK SORT Algorithms. |
Implemented By - Devansh Varshney CSE3_E E_12 |
Codechef ID - devansh777 |
HackerRank/ HackerEarth ID - varshenydevansh |
Stack Overflow - varshneydevansh |
Git-Hub ID - varshneydevansh |
-----------------------------------------------------------------------------------'
*/
#include <iostream>
@varshneydevansh
varshneydevansh / Sorting.C
Created November 28, 2017 05:57
This is a program of various sorting algorithms using file handling in C++
/*
Implementation of BUBBLE SORT/ SELECTION SORT/ INSERTION SORT Algorithms.
Implemented By - Devansh Varshney CSE3_E E_12
Codechef ID - devansh777
HackerRank/ HackerEarth ID - varshenydevansh
Stack Overflow - varshneydevansh
Git-Hub ID - varshneydevansh
-------------------------------------------------------------------------------------
To use the C++14 install the GCC has to be updated manually.