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
- Implementation
- Service Lane
- Discussions
Service Lane
Service Lane
Sort by
recency
|
1316 Discussions
|
Please Login in order to post a comment
The problem is incorrect with its parameter, fix it by including width vector in parameter and passing the calculated width vector through main function.
Problem is insolvable without width so do not waste time figuring alternative.
Spoiler: Solution in rust:
Here is my Python solution! I think there was a mistake in the code where the function should take the width and the cases, not n and the cases.
Python
Here is my c++ solution, you can watch the explanation here : https://youtu.be/iuLCUdG77yQ You will need to update the serviLane function by adding the width vector, since it was forgotten.