Skip to content

Instantly share code, notes, and snippets.

View sriharsha-sammeta's full-sized avatar

Sriharsha Sammeta sriharsha-sammeta

View GitHub Profile
@sriharsha-sammeta
sriharsha-sammeta / NHAY.cpp
Created November 7, 2015 17:34
NHAY solution
#include<cstdio>
#include<climits>
typedef long long int lli;
void calcLps(char *pat, lli *lps, lli& m){
lli j = 0;
lli i = 1;
lps[0] = 0;