Skip to content

Instantly share code, notes, and snippets.

View jaffreyjoy's full-sized avatar
👁️
Staring at progress bars...

Jaffrey jaffreyjoy

👁️
Staring at progress bars...
View GitHub Profile
@jaffreyjoy
jaffreyjoy / keybase.md
Created July 18, 2020 08:51
keybase.md

Keybase proof

I hereby claim:

  • I am jaffreyjoy on github.
  • I am jaffreyjoy (https://keybase.io/jaffreyjoy) on keybase.
  • I have a public key whose fingerprint is 4F88 04B5 D73A D212 014A FAE7 0BCD D355 C572 11FB

To claim this, I am signing this object:

@jaffreyjoy
jaffreyjoy / ssd_hw_02.md
Last active September 8, 2022 15:33
SSD hw

Public

  • A variable is given public scope if it is supposed to be accessed outside the class.
  • Eg:- In a Stack class, we would want the method push() to be public.
    class Stack{
        push(){

        }
    }
@jaffreyjoy
jaffreyjoy / bottomup_mergesort.cpp
Last active September 28, 2022 05:34
Basic Algos
#include<iostream>
using namespace std;
void print_arr(int* a, int l, int r){
for(int i=l; i<=r; i++)
cout << a[i] << " ";
cout << endl;
}
@jaffreyjoy
jaffreyjoy / deque.cpp
Created December 28, 2023 14:41
Raw Implementation of deque in cpp using 2 arrays
#include<iostream>
#include<string>
#include<stdexcept>
#include<typeinfo>
using namespace std;
#define ull unsigned long long
#define ll long long
#define INITIAL_CAPACITY 2
#define CAPACITY_SCALING_FACTOR 2
@jaffreyjoy
jaffreyjoy / distsys_a1_report.md
Last active January 28, 2024 10:52
Distributed Systems - Assignment 1 Report

Distributed Systems: Assignment - 1

Name: Jaffrey Joy
Roll no: 2022201006

Question 1B - NQueens

  • Premise

    Board size is denoted by $n$
    No. of processes is denoted by $p$
    A core is denoted by $c$