Monk’s favourite game is Football and his favourite club is “Manchester United”. Manchester United has qualified for the Champions League Final which is to be held…
Given a string S, count the number of non empty sub strings that are palindromes.A sub string is any continuous sequence of characters in the string.A string is said to be palindrome, if the…
You are given a string S. S consists of several words separated by one or more spaces. Word consists of Latin letters as well as other symbols (but not spaces).In each word which starts from lowercase Latin letter replace starting letter with uppercase Latin letter.
Alice is celebrating the New Year with n piles of candies! Each pile i contains ci candies, and she defines her happiness factor as the minimum number of candies in any pile. As this is a special day, Alice wants to try to maximize her happiness factor by…
In code world all genders are considered equal ( It means their is nothing like male or female). Now their are N distinct persons living in this hypothetical…
Nikki’s latest work is writing an story of letters. However, she finds writing story so boring that, after working for three hours, she realized that all she has written are M long words consisting entirely…
The very famous football club Manchester United decided to popularize football in India by organizing a football fest. The fest had many events for different sections of people.For the…
Xsquare loves to play with arrays a lot. Today, he has two arrays named as A and B. Each array consists of N positive integers.
Monk is standing at the door of his classroom. There are currently N students in the class, i’th student got Aicandies.There are still M more students to come. At every…
Rash is known about his love for racing sports. He is an avid Formula 1 fan. He went to watch this year’s Indian Grand Prix at New Delhi. He noticed that one segment of the circuit was a long straight road. It was impossible…