The Time in Words HackerRank Solution in C, C++, Java, Python
Given the time in numerals we may convert it into words, as shown below: At minutes = 0, use o’ clock. For 1<=minutes<=30, use past, and for 30<minutes use to. …
Given the time in numerals we may convert it into words, as shown below: At minutes = 0, use o’ clock. For 1<=minutes<=30, use past, and for 30<minutes use to. …
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 …