Skip to content

Instantly share code, notes, and snippets.

View imjayeshjadhav's full-sized avatar

JJ imjayeshjadhav

View GitHub Profile
#include <iostream>
#include <vector>
#include<chrono>
using namespace std::chrono;
using namespace std;
int sum(vector<int> &freq, int i, int j) {
int s = 0;
for(int k = i; k <= j; k++){
s += freq[k];
@imjayeshjadhav
imjayeshjadhav / AVL_BST.cpp
Created March 16, 2025 18:34
Implementation of AVL Tree with Insertion and Traversals
/*
Name: Jayesh Jadhav
Roll Number: 17
Batch: A1
PRN Number: 202301040019
*/
#include<iostream>
#include<stack>
#include<queue>
@imjayeshjadhav
imjayeshjadhav / TBT.cpp
Last active March 10, 2025 04:41
Threaded Binary Search Tree (All Recursive and Non-Recursive Traversals)
/*
Name: Jayesh Jadhav
Roll Number: 17
Batch: A1
PRN Number: 202301040019
*/
#include <iostream>
using namespace std;
/*
Name: Jayesh Jadhav
Roll Number: 17
Batch: A1
PRN Number: 202301040019
*/
#include <iostream>
#include<stack>
#include<queue>
using namespace std;