Hackerrank – Taum and B’day

Hackerrank – Problem Statement

A description of the problem can be found on Hackerrank.

Solution

The hint is given in problem description. One should compare if it is better to buy presents without changing colors or with changing colors.

I created solution in:

All solutions are also available on my GitHub profile.

Scala

Java

Javascript

Leave a Reply

Your email address will not be published. Required fields are marked *