10102

Critical t get the question but easy to solve. Problem asks to find the maximum length of minimum distance.

 

496

Using set::set_intersect(params) the problem can be solved.

 

467

 

10196

 

10044

1189

 

1062

WA Code:

 Idea The ships load in alphabetical order, so we can stack with respect to the alphabet. Start with one stack and add the first letter. From then on, check each stack to see if the current letter can be added. If the current letter is less than or equal to the one

12801