Consider an array A. Your job is to find longest subarray in which elements greater than x are more than elements not greater than x Input 1. size of...
Find the total number of ways a m×n board can be painted using 3 colors while making sure no cells of the same row or the same column have...
A rotation on a string is defined as removing first element and concatenating it at the end. Given N and an array of N strings.Your job is to predict...
Given L , R ( 1<=L,R <= 1000000000000000000) . Count the numbers in [L,R] such that each number satisfies two properties : 1. The total count of odd digits...
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...
INFOSYS HIRING PROGRAM – HACK WITH INFY Batch : 2021 Passing outs HackWithInfy is India-wide coding competition for final year engineering students i.e who are graduating in 2021. The...