Tag Archives: week-of-code-25-solution

HackerRank : Week of Code 25 – Append and Delete

You have a string, , of lowercase English alphabetic letters. You can perform two types of operations on : Append a lowercase English alphabetic letter to the end of the string. Delete the last character in the string. Performing this operation on an empty string results in an empty string. Given an integer, , and two strings, and… Read More »

HackerRank : Week of Code 25 – Between Two Sets

Consider two sets of positive integers, A and B . We say that a positive integer, x , is between sets and if the following conditions are satisfied: All elements in A are factors of  x. x is a factor of all elements in B. Given A and B, find and print the number of integers (i.e., possible x‘s) that are between the… Read More »