• + 4 comments

    the problem suck,

    1.you need change the function prototype as; vector serviceLane(vector> cases, vector width) it mean that you need read the main() Legal fuction.

    check from the problme description, you will think that {enter,exit} in the case is the index starting from 1, but acutally you need change it to as starting from 0 then pass.