Skip to main content
r/leetcode icon
Go to leetcode
r/leetcode table table

Is this how a hashtable looks like?

Go to leetcode

Maximum Profit HackerRank.

r/leetcode - 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 :)