Vijay has given a set of points 𝑥1, 𝑥2, …, 𝑥𝑛 on the number line. Two points 𝑖 and 𝑗 can be matched with each…
Eugene likes working with arrays. And today he needs your help in solving one challenging task. An array c is a sub-array of an array…
There is a binary string a of length n . In one operation, you can select any prefix of a with an equal number of…
A video player plays a game in which the character competes in a hurdle race. Hurdles are of varying heights, and the characters have a…
Arif and Caleb both are friends. Both are planning to utilize the vacation holidays by learning a programming language. They learned the concept of the pointer…
Given an m x n matrix, return all elements of the matrix in spiral order. INPUT_1:1 2 3 4 516 17 18 19 615 24 …
Given a matrix containing lower alphabetical characters only, we need to print all palindromic paths in given matrix. A path is defined as a sequence…
Yasir was traveling from Chennai to Bangalore by bus. He looking the LED display board for the destination place name on the bus. But it…
Kalpana Chawla is planning an expedition to Jupiter for 𝑛 people. One of the important tasks is to provide biscuits for each participant. The warehouse…
Mukesh has given an array 𝑎1,𝑎2,…,𝑎𝑛 to Mahesh. Mahesh can remove at most one subsegment from it. The remaining elements should be pairwise distinct. In…
Apart from having lots of vacations throughout the year, residents of India also have whole fortune years. The year is considered a fortune if it…
Tina has received a gift of multicolored crayons for her birthday! Unfortunately, She lives in a monochrome world, where everything is of the same color…
Amazon Prime announced a one-year subscription offer for technical students. we will provide two numbers for the addition that must be use call by reference.…
Mohan is very particular about numbers. There are ‘K’ digits that he dislikes: D1, D2,…Dk. Mohan is shopping, and now paying at the cashier. His…
Explanation:Sample Input STDIN Function 7 3 …
Isaac has a water leak in his bathroom. So, he had invited two workers for the waterproofing of his bathroom. But due to the shortage…
Rahul who studies arts came across a programming challenge of finding the distance between the two array values is the number of indices between them. …
Ragu has given 3 integers A, B, and N to Dhamo. Now Ragu asked Dhamo to calculate the maximum possible value of : floor(Ax/B)-A ×…
Mr.Yasir works at the Admission office in higher secondary school. He has to calculate the age of the student, who has taken admission, to cross-check…
Meera is a food blogger and all her fans craves for the photos of the new restaurants and its dishes . Her manager has asked…