Skip to content

Instantly share code, notes, and snippets.

View sauravgpt's full-sized avatar
🎯
Focusing

Saurav Kumar Gupta sauravgpt

🎯
Focusing
View GitHub Profile
@sauravgpt
sauravgpt / diameter_n_ary_tree.cpp
Created August 25, 2021 08:03
Diameter of N-ary Tree
#include<bits/stdc++.h>
using namespace std;
/* Let us create below tree
* A
* / / \ \
* B F D E
* / \ | /|\
* K J G C H I
* /\ \