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
|
545 Discussions
|
Please Login in order to post a comment
Here is my c++ solution, you can watch the explanation video here : https://youtu.be/ISg5mFFafws
My Java solution with o(n log n) time and o(n) space:
I got it in 2 lines!
unorthodox java solution but i assume very less space complexity
class Result {
}