We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Taum and B'day
Taum and B'day
Sort by
recency
|
936 Discussions
|
Please Login in order to post a comment
For typescript this exercise as it is designed will not have a correct answer as the type of the function for this exercise would be BigInt and not number
Here is my simple c++ solution, you can watch the explanation here : https://youtu.be/T9sxEzAbp-M
`
Here is my one line Python solution! There are three candidates for the lowest cost, buying all of them at the normal price, buying all black presents and converting to white presents, or buying all white presents and converting to black presents. Then, we return the smallest of these prices.