This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
class DSU { | |
vector<int> parent; | |
vector<int> rank; | |
public: | |
DSU (int nodes) { | |
vector<int> temp(nodes); | |
parent = temp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** This Template was created by Tasfik Rahman *** | |
#include <stdio.h> | |
#define SIZE 3 | |
#define bool int | |
#define true 1 | |
#define false 0 | |
#define nl printf("\n") | |
int board[SIZE][SIZE]; | |
void printBoard() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** This Template was created by Tasfik Rahman *** | |
#include <iostream> | |
#include <stdio.h> | |
#include <bits/stdc++.h> | |
#define PI pair<int> | |
#define PII pair<PI> | |
#define VI vector<int> | |
#define VII vector<VI> | |
#define SIZE 3 | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=imread('D:\images\spider.jpg'); | |
size(a) | |
% a=imresize(a,[250 350]); | |
imshow(a); | |
size(a) | |
whos a | |
imshow(a,[]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#define pii pair<int,int> | |
using namespace std; | |
int j1=4,j2=3,d=2; | |
queue<pii> steps; | |
vector<pii> track; | |
map<pii, int> visited; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python Snippets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [JavaScript basics to remember] |