hard
Aho-corasick algo
maths
segment tree
greedy
string
spoj
LINK
*Amazon-> count no. of ways % 10^9+7- take at most k kilometers, for x distance home -> kth no. divisible by a or b
There was an error while loading. Please reload this page.