Given an integer N N<=10^50 Output the no. of pairs (x,y) such that 0<=x<=n 0<=y<=n F(x) +F(y) = Prime number F(x) = sum of digits of x Note :...
Given an integer(n) denoting the no. of particles initially and array of sizes of these particles. These particles can go into any number of simulations (possibly none). In one...
Sam and Alex are playing a new game where there are number of piles, each with any number of stones in it. Players take turns removing stones from any...