There are M boys and N girls in the gang. Each boy can only dance with a girl who is strictly shorter than him. A girl…
One fine day when Sozy returned to her hometown she met Mega and had a crush on her. After a weeks time Mega went to…
Samba(Rice) can be grown in rectangular patches of any side lengths. However, The owner only has a limited amount of land. Consider the entire town…
Python makes regular expressions available through the re module.Regular expressions are combinations of characters that are interpreted as rules for matching sub-strings. For instance, the…
Mr.Greet is the name of the digital notice board placed at the entrance of the seminar hall. Its purpose is to welcome each and every…
Nathan has given a square map to Nancy as a matrix of integer strings. Each cell of the map has a value denoting its depth.…
A bipartite graph is a special kind of graph that consists of two vertex sets. There is an undirected graph with n nodes, where each…
A Zoo consists of a lion museum and a zoo for safari riding. There are many passengers and n single-passenger cars. Passengers wander around the…
A play school has a number of children and a number of treats to pass out to them. Their teacher decides the fairest way to…
Can you please tell whether Pathan will be able to build such a Rubik’s cube or not? Pathan likes solving Rubik’s cube a lot. He…
Mithran has an array of lengths n. He has just enough free time to make a new array consisting of n copies of the old…
One day Anna got the following task at school: to arrange several numbers in a circle so that any two neighboring numbers differs exactly by…
B.Tech students going to make their own higher studies application! The application must perform two types of operations: add a name, where name is a string…
Polycarp has an array consisting of n integers. He wants to play a game with this array. The game consists of several moves. On the…
Tina had a pretty weird sleeping schedule. There are h hours in a day. Tina will sleep exactly n times. The i -th time he…
Ramesh have been given an array A of size N and an integer K. This array consists of N integers ranging from 1 to 10^7.…
Monkey B., the young coach of Ninjas, has found the big house which consists of n flats ordered in a row from left to right.…
Given a square matrix of order n*n, we need to print elements of the matrix in Z form.Square matrix means “A matrix having same or…
Given a square matrix and a number k. The task is to shift the first k elements of each row to the right of the…
You are a coach at your local university. There are n students under your supervision, the programming skill of the i-th student is ai. You…