Skip to content

Instantly share code, notes, and snippets.

View jaideepheer's full-sized avatar
🕹️

Jaideep Singh Heer jaideepheer

🕹️
View GitHub Profile
@jaideepheer
jaideepheer / GM_Cyclic_Config.js
Last active January 17, 2022 18:05
Userscript Snippets
// ...
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @grant GM_setValue
// @grant GM_getValue
// ...
class GM_Cyclic_Config {
constructor({
key,
#include <iostream>
#include <cmath>
using namespace std;
/**
* @brief Fibonacci min heap.
*/
template <typename T>
class FibbHeap
// I don't like null
#include <optional>
// For to_string()
#include <string>
#include <sstream>
template <typename T>
class SinglyLinkedList
{
private:
struct SLLNode
// Example program
#include <iostream>
#include <string>
using namespace std;
class Person
{
public:
Person(){}
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class SaltedSBox {
private final Random rand;
package com.capability3;
import java.util.*;
public class binarysearch
{
public static boolean search(int []arr,int n,int key)
{
// Insert sort
int temp;
for(int i=0;i<n;i++)
{
#include<iostream>
#include<bitset>
#define MAXN 100000
using namespace std;
int main()
{
bitset<MAXN> b;
unsigned long n, in, i;
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int T;
cin>>T;
while(T--)
{
#include<iostream>
#include<bitset>
using namespace std;
int main()
{
int N;
cin>>N;
unsigned int count[4096] = {0};
long long inp;
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception