Skip to content

Instantly share code, notes, and snippets.

View tasfik007's full-sized avatar
๐Ÿ˜
Trouble doing recursions, then do recursions

Tasfik Rahman tasfik007

๐Ÿ˜
Trouble doing recursions, then do recursions
View GitHub Profile
@tasfik007
tasfik007 / Algorithms.md
Last active August 19, 2022 15:51
Algorithm implementations in C++

Algorithm implementations in C++

@tasfik007
tasfik007 / dsu
Created August 19, 2022 13:35
Disjoint Set Union by rank and path compression
#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;
@tasfik007
tasfik007 / TicTacToe.c
Last active May 11, 2020 08:56
TicTacToe game using C
// *** 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()
@tasfik007
tasfik007 / TicTacToe.cpp
Created May 11, 2020 08:43
TicTacToe game implemented using C++
// *** 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;
@tasfik007
tasfik007 / dip101.m
Last active February 13, 2020 04:42
Digital Image Processing [DIP]
a=imread('D:\images\spider.jpg');
size(a)
% a=imresize(a,[250 350]);
imshow(a);
size(a)
whos a
imshow(a,[]);
#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;

Signal Convertion with Line Coding Technique

In MatLab

alt text

# Python Snippets
# [JavaScript basics to remember]