Rearrange characters in a string such that no two adjacent are same.Given a string str, rearrange the characters of s so that any two adjacent…
We are given a matrix with R rows and C columns has cells with integer coordinates (rCenter, cCenter), where 0 <= r < R and…
Selvan asks his friend Arav to buy the book. Arav would recommend a bookstall in Thanjavur. Arav further says that the advice given to Selvan…
Rakesh has given an array of integers and you need to find out if the absolute difference of values of any two consecutive array integers…
Fazil loves to preform different operations on arrays, and so being the Head of the higher education institution, he assigned a task to his new…
The much-anticipated video game “PUBG” has been released. The rules of “PUBG” are very simple. The game field is a 100×100 matrix, where each cell…
Advika bought a cadbaury gems pocket for his friends. She opened the pocket and arranged the gems colour wise. After finishing the arrangement it looked…
Steve Waugh and Mark Waugh are sitting at the bottom of their tree house and debating in how many ways they can jump up the…
In primary mathematics classes, you all have learned about profit and loss. If cost price is greater than selling price, then there is a…
While purchasing certain items, a discount of 10% is offered by the popular super market if the quantity purchased is more than 1000. Since number…
Hassan gets a job in a software company in Hyderabad. The training period for the first three months is 20000 salary. Then incremented to 25000…
Laasya looking at the friends birthday list on a social media site likes to find if the particular person’s birthday year is a leap year…
Anegan is a member of a programming competition site, Awesome Coder. Each member of the Awesome Coder is assigned two values: Inner Rating and Displayed…
Sivan’s is teaching his son Vigneshwaran his daily lessons in their home. Vigneshwaran’s mathematics homework note had a question named Mad angles where he need…
Arif likes to play volley ball. He found some statistics of matches which described who won the points in order. A game shall be won by…
Afghanistan has surrounded by attackers. A truck enters the city. The driver claims the load is food and medicine from Pakistanis. Yasir is one of the…
Fazil frequently uses Hexadecimal notation in his work. In hexadecimal notation, besides the ten digits 0, 1, …9 the six letters A, B, C, D,…
Given an array of words, Group all anagrams together. Anagrams : a word, phrase, or name formed by rearranging the letters of another, such as spar, formed…
Given an array of words, print all anagrams together. Anagrams : a word, phrase, or name formed by rearranging the letters of another, such as spar,…
Surya was used to wear a smartwatch when he was in the Treadmill and during Cycling. Surya’s Smart watch displays the total workout time in…