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.
- Prepare
- Algorithms
- Greedy
- Jim and the Orders
- Discussions
Jim and the Orders
Jim and the Orders
Sort by
recency
|
544 Discussions
|
Please Login in order to post a comment
I got it in 2 lines!
Here is my c++ solution, you can watch the explanation video here : https://youtu.be/ISg5mFFafws
unorthodox java solution but i assume very less space complexity
class Result {
}
Java: