Tag Archives: Lucky Purchase Solution

HackerRank : Week of Code 35 – Lucky Purchase

Lucky Purchase: Hackerrank Sharon wants to buy a laptop for programming. She plans on buying a laptop whose price is made of digits 4 and 7 only. The number of 4s and 7s in the price should be equal. You are given laptop brand names and their prices. Find and print the name of the laptop brand that satisfies the above criteria. If there… Read More »