• + 0 comments

    width problem??

    Solution: Search for this line in your code.

    (1) -> List result = Result.serviceLane(n, cases);

    now change it to ,
    

    -> List result = Result.serviceLane(n, cases,width);

    and one more change ,
    

    (2) -> public static List serviceLane(int n,

    List> cases) {

    ->   public static List<Integer> serviceLane(int n,
    
    , List<List<Integer>> cases, List<Integer> width ){