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
|
1286 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.
Pyton 3:
Nice:
Description is completely confused about width and indices, also explains 1-based indexing, input uses 0-based. Prepares you for real world clients, that invariably will want the opposite of what they are actually telling you :-)
In python framework, width is not part of the function signature, but can be looked up in the namespace of the calling context. Teaches you about tight coupling as an important skill of writing code in a way, to secure your job.
mild cases of Karpaltunnelsyndrom Selbsttest may improve with rest and changes in activity
JS Solution :
width problem??
Solution: Search for this line in your code.
(1) -> List result = Result.serviceLane(n, cases);
-> List result = Result.serviceLane(n, cases,width);
(2) -> public static List serviceLane(int n,
List> cases) {