You are viewing a single comment's thread. Return to all comments →
That is true! Solved in O(1), but I found only a complex solution.
https://www.hackerrank.com/rest/contests/master/challenges/halloween-sale/hackers/amdokamal/download_solution
Halloween Sale
You are viewing a single comment's thread. Return to all comments →
That is true! Solved in O(1), but I found only a complex solution.
https://www.hackerrank.com/rest/contests/master/challenges/halloween-sale/hackers/amdokamal/download_solution