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
|
1299 Discussions
|
Please Login in order to post a comment
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.
The example at the beginning uses 1-based indexing for the width array, whereas the sample later on uses 0-based indexing.
Typescript minimal solution (I had to fix the function since it missed the width param):