Skip to content

Instantly share code, notes, and snippets.

lakshayg / sudoku.hs
Last active Nov 24, 2020
Solve sudoku in haskell
View sudoku.hs
import Data.Char (ord)
import Data.Maybe (isJust)
data CellValue = CellValue { index :: Int
, row :: Int
, col :: Int
, box :: Int
, value :: Int
lakshayg / median_accumulator.cpp
Created Sep 23, 2018
An accumulator for computing median of a stream
View median_accumulator.cpp
#include <queue>
#include <cassert>
#include <vector>
#include <iostream>
template <typename T>
class MedianAccumulator {
void operator()(T val);

Keybase proof

I hereby claim:

  • I am lakshayg on github.
  • I am lakshayg ( on keybase.
  • I have a public key whose fingerprint is D0E4 D498 1ED1 012D 9B01 6DF7 4F87 0680 C2A5 1C37

To claim this, I am signing this object:

lakshayg / erfinv.h
Last active Aug 22, 2019
The inverse error function
View erfinv.h
// This code has been migrated to