Skip to content

Instantly share code, notes, and snippets.

View joaocanuto's full-sized avatar
🎯
Focusing

João Guilherme joaocanuto

🎯
Focusing
View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
#define _ ios_base::sync_with_stdio(0);cin.tie(0);
#define endl '\n'
#define int long long
#define double long double
typedef long long ll;
#ifdef DEBUG
@joaocanuto
joaocanuto / AVL_Tree.cpp
Created September 17, 2023 04:19
AVL_Tree
#include <iostream>
using namespace std;
class Node {
public:
int data;
Node* left;
Node* right;
int height;
@joaocanuto
joaocanuto / Splay_Tree.cpp
Created September 17, 2023 04:15
Splay_Tree
#include <iostream>
using namespace std;
class Node {
public:
int data;
Node* left;
Node* right;
int height;
@joaocanuto
joaocanuto / .cpp
Created September 4, 2023 13:52
M - Maximizing Flight Efficiency (WA 92)
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
#define vi vector<int>
#define vii vector<pii>
#define pb push_back
#define F first
#define S second
#define ll long long
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long
#define vi vector<int>
#define pii pair<int,int>
#define pb push_back
#define mp make_pair