Halloween Sale HackerRank Solution in C, C++, Java, Python
You wish to buy video games from the famous online video game store Mist. Usually, all games are sold at the same price,p dollars. However, they are planning to have …
You wish to buy video games from the famous online video game store Mist. Usually, all games are sold at the same price,p dollars. However, they are planning to have …
Function Description Complete the beautifulTriplets function in the editor below. It must return an integer that represents the number of beautiful triplets in the sequence. beautifulTriplets has the following parameters: …
Function Description Complete the beautifulTriplets function in the editor below. It must return an integer that represents the number of beautiful triplets in the sequence. beautifulTriplets has the following parameters: …
A modified Kaprekar number is a positive whole number with a special property. If you square it, then split the number into two integers and sum those integers, you have …
Lexicographical order is often known as alphabetical order when dealing with strings. A string is greater than another string if it comes later in a lexicographically sorted list. Given a word, create a …
Given an array of integers, determine the minimum number of elements to delete to leave only elements of equal value. Example Arr = [1,2,2,3] Delete the 2 elements 1 and …
An English text needs to be encrypted using the following encryption scheme. First, the spaces are removed from the text. Let be the length of this text. Then, characters are …
Taum is planning to celebrate the birthday of his friend, Diksha. There are two types of gifts that Diksha wants from Taum: one is black and the other is white. …
There are a number of people who will be attending ACM-ICPC World Finals. Each of them may be well versed in a number of topics. Given a list of topics …
You will be given a square chess board with one queen and a number of obstacles placed on it. Determine how many squares the queen can attack. A queen is …