Sherlock and Squares Hackerrank I think you might go through this problem but here I’m going to make it little more interesting. So the problem is like: Watson gives two integers (A and B) to Sherlock and asks if he can be able to count the number of square integers between A and B(both inclusive) to test his intelligence. To make it simple Watson also explains: A square integer is an integer which is the square of an integer. For …

Game of Thrones I Hackerrank We all are familiar with the Game of Thrones and love their characters, that’s why today we are going to solve a problem based on this.So the problem is like, Dothraki is planning an attack to usurp King Robert’s throne. King Robert came to know about this conspiracy from Raven and plans to lock the single door through which the enemy can enter his kingdom. But, the problem comes here that to lock the door …

Bigger is Greater Hackerrank We had played a lot with numbers, not even played we are still playing with them but today we have to solve a problem of letters. The problem is based on rearranging the letters and we have some given condition. So the conditions are: Given a word ‘w’, we have to rearrange the letters of ‘w’ to construct another word in such a way that ‘s’ is lexicographically greater than ‘w’. If you found more than …

Given the time in numerals we may convert it into words, as shown below: Write a program which prints the time in words for the input given in the format mentioned above. Input conditions There will be two lines of input: H, representing the hours M, representing the minutes Limitation 1<=H<=12 1<=M<=60 Output conditions Display the time in words. Input Example 5 47 Output Example thirteen minutes to six Solution Important steps to keep in mind. 1. Create lists of word …

2D Array – DS Hackerrank Context Given a 6X6 2D Array, A: 1 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 We define an hourglass in A to be a subset of values with indices falling in this pattern in A’s graphical representation: a b c d e f g There are 16 …

Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers.This is Hackerrank Problem we will give you solution with description so don't worry just code.

Arrays – DS Hackerrank An array is a type of data structure that stores elements of the same type in a contiguous block of memory. In an array, A, of size N, each memory location has some unique index, i (where 0<=i<=N), that can be referenced as A[i] (you may also see it written as Ai). Given an array, …