Skip to content

Instantly share code, notes, and snippets.

Python 10 hrs 56 mins ██████████████▏░░░░░░ 67.8%
JSON 1 hr 45 mins ██▎░░░░░░░░░░░░░░░░░░ 10.9%
C++ 56 mins █▏░░░░░░░░░░░░░░░░░░░ 5.9%
Markdown 54 mins █▏░░░░░░░░░░░░░░░░░░░ 5.6%
Docker 44 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.7%
🌞 Morning 56 commits █▌░░░░░░░░░░░░░░░░░░░ 7.3%
🌆 Daytime 179 commits ████▉░░░░░░░░░░░░░░░░ 23.5%
🌃 Evening 280 commits ███████▋░░░░░░░░░░░░░ 36.7%
🌙 Night 247 commits ██████▊░░░░░░░░░░░░░░ 32.4%
@tony9402
tony9402 / levelorder.cpp
Created March 31, 2020 11:29
level-order
#include<bits/stdc++.h>
using namespace std;
struct Node{
int root, left, right;
Node(int root=-1, int left=-1, int right=-1):root(root),left(left),right(right){ }
};
Node tree[11];
@tony9402
tony9402 / postorder.cpp
Last active March 31, 2020 11:25
postorder
#include<bits/stdc++.h>
using namespace std;
struct Node{
int root, left, right;
Node(int root=-1, int left=-1, int right=-1):root(root),left(left),right(right){ }
};
Node tree[11];
@tony9402
tony9402 / inorder.cpp
Created March 31, 2020 11:24
inorder
#include<bits/stdc++.h>
using namespace std;
struct Node{
int root, left, right;
Node(int root=-1, int left=-1, int right=-1):root(root),left(left),right(right){ }
};
Node tree[11];
@tony9402
tony9402 / preorder.cpp
Created March 31, 2020 11:23
preorder
#include<bits/stdc++.h>
using namespace std;
struct Node{
int root, left, right;
Node(int root=-1, int left=-1, int right=-1):root(root),left(left),right(right){ }
};
Node tree[11];
@tony9402
tony9402 / 627D.cpp
Created March 13, 2020 17:30
Codeforces
#include<bits/stdc++.h>
#define endl "\n";
using namespace std;
typedef long long ll;
int arr[200001], inf = 1000000000;
int main() {
ios::sync_with_stdio(false);
@tony9402
tony9402 / 627C.cpp
Created March 13, 2020 16:57
Codeforces
#include<bits/stdc++.h>
#define endl "\n";
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int t;
@tony9402
tony9402 / 627B.cpp
Last active March 13, 2020 16:45
Codeforces
#include<bits/stdc++.h>
#define endl "\n";
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int t;
@tony9402
tony9402 / 627A.cpp
Last active March 13, 2020 16:36
Codeforces
#include<bits/stdc++.h>
#define endl "\n";
using namespace std;
typedef long long ll;
int arr[200001], inf = 1000000000;
int main() {
ios::sync_with_stdio(false);