Skip to content

Instantly share code, notes, and snippets.

View yadav26's full-sized avatar

Anshul Yadav yadav26

View GitHub Profile
@yadav26
yadav26 / FindGraphOverlap.cpp
Last active October 30, 2018 14:26
Find overlap rectangles and probe colors of different points
// FindGrpahColor.cpp
//
#include <iostream>
#include <memory>
#include <fstream>
#include <algorithm>
#include <functional>
#include <vector>
#include <string>
@yadav26
yadav26 / QuickSort.cpp
Last active May 3, 2022 13:53
QuickSort
// QkCTest.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
//#include "pch.h"
#include <iostream>
using namespace std;
int myArray[] = { 21,10,5,2,21,19,6,9, 11, 17, 11, 8, 8, 8,12,0,0,0,0,19,21,21 };
@yadav26
yadav26 / gist:acdba9d32e6e4030fca7625f4c2918ff
Created April 10, 2019 05:15
Finding the optimized paranthesis solution for multidimension matrix (refer for matrix / matrix multiplication / optimization matrix on wikipedia)
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <stack>
#include <set>
#include <algorithm>
#include <functional>
#include <assert.h>
const fs = require('fs');
var express = require('express')
const app = express()
var rp = require('request-promise');
app.listen(process.env.PORT || 3000)
Pools = [];
{
"routes": [
{
"id": 8514,
"name": "Williams Landing Station - Point Cook South via Alamanda Bvd",
"number": "494",
"stops": [
{
"type": "stop",
"label": "Jansar St/Saltwater Prom",
@yadav26
yadav26 / knightSequenceCalculator.cpp
Last active March 7, 2024 05:52
KnightDialler_SequenceMapper
/***********************************************************************************************
Anshul Yadav
er.anshulyadav@gmail.com
yadav26@github
This is for reference, acacia system knight sequncer
************************************************************************************************
Compile and run :
g++ -std=c++17 -Wpedantic -O3 source.cpp -o knightSequence.out && ./knightSequence.out
g++ -std=c++17 -Wpedantic -O3 source.cpp -o knightSequence.out && ./knightSequence.out -c{8} -p [10]
*/