
Is this how a hashtable looks like?
Maximum Profit HackerRank.


I got this interview question on an online assessment recently. Does anybody know how to solve it? I don’t really need the code solution, just the approach and some explanations. Although feel free to include the code if you like.
Any help is very much appreciated :)