You've successfully subscribed to The Poor Coder | Hackerrank Solutions
Great! Next, complete checkout for full access to The Poor Coder | Hackerrank Solutions
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Home
Author
Terms
Privacy
About
Tumblr
Pinterest
Enable dark mode
Algorithms
Beeze Aal
12.Jul.2020
Hackerrank - Equal Solution
Christy is interning at HackerRank. One day she has to distribute some chocolates to her colleagues. She is biased towards her friends and plans to give them more than the others. One of the program managers hears of this and tells her to make sure everyone gets the same number.
Beeze Aal
12.Jul.2020
Hackerrank - The Coin Change Problem Solution
You are working at the cash counter at a fun-fair, and you have different types of coins available to you in infinite quantities. The value of each coin is already given. Can you determine the number of ways of making change for a particular number of units using the given
Beeze Aal
12.Jul.2020
Hackerrank - Candies Solution
Alice is a kindergarten teacher. She wants to give some candies to the children in her class. All the children sit in a line and each of them has a rating score according to his or her performance in the class. Alice wants to give at least 1 candy to
Beeze Aal
12.Jul.2020
Hackerrank - Largest Permutation Solution
You are given an unordered array of unique integers incrementing from . You can swap any two elements a limited number of times. Determine the largest lexicographical value array that can be created by executing no more than the limited number of swaps. For example, if and the maximum swaps , the
Beeze Aal
12.Jul.2020
Hackerrank - Fibonacci Modified Solution
We define a modified Fibonacci sequence using the following definition: Given terms and where , term is computed using the following relation:For example, if and , ,,,and so on.Given three integers, , , and , compute and print the term of a modified Fibonacci sequence. Function Description Complete the fibonacciModified function in the
Beeze Aal
11.Jul.2020
Hackerrank - Bonetrousle Solution
Here's a humerus joke: Why did Papyrus the skeleton go to the store by himself? Because he had no body to go with him!Did you like it? Don't worry, I've got a ton more. A skele-ton. Once upon a time, Papyrus the skeleton went to buy some pasta from
Beeze Aal
11.Jul.2020
Hackerrank - Common Child Solution
A string is said to be a child of a another string if it can be formed by deleting 0 or more characters from the other string. Given two strings of equal length, what's the longest string that can be constructed such that it is a child of both? For
Beeze Aal
08.Jul.2020
Hackerrank - Gaming Array Solution
Andy wants to play a game with his little brother, Bob. The game starts with an array of distinct integers and the rules are as follows: Bob always plays first and the two players move in alternating turns.In a single move, a player chooses the maximum element currently present
Beeze Aal
06.Jul.2020
Hackerrank - Nikita and the Game Solution
Nikita just came up with a new array game. The rules are as follows: Initially, Nikita has an array of integers.In each move, Nikita must partition the array into non-empty contiguous parts such that the sum of the elements in the left partition is equal to the sum of
Beeze Aal
06.Jul.2020
Hackerrank - Stock Maximize Solution
Your algorithms have become so good at predicting the market that you now know what the share price of Wooden Orange Toothpicks Inc. (WOT) will be for the next number of days. Each day, you can either buy one share of WOT, sell any number of shares of WOT that
Beeze Aal
05.Jul.2020
Hackerrank - Identify Smith Numbers Solution
A Smith number is a composite number, the sum of whose digits is the sum of the digits of its prime factors obtained as a result of prime factorization (excluding ). The first few such numbers are , , , , , , and . Example: So, its prime factors are , , , , and . The sum of its digits is
Beeze Aal
05.Jul.2020
Hackerrank - Halloween party Solution
Alex is attending a Halloween party with his girlfriend, Silvia. At the party, Silvia spots the corner of an infinite chocolate bar (two dimensional, infinitely long in width and length). If the chocolate can be served only as 1 x 1 sized pieces and Alex can cut the chocolate bar
More Posts