So my code verified all the tests cases, but when I tried to validate it, I had the 7th test wasn't good.
The description of the 7th test is : Works in time when N = 100000 and L < 2^31
When I read this description, I thought that the problem in my code was that it was slow.
So I tried to minimize the time of processing (inserting + sorting), but without success.
Until I came to the forum and figured out that the parameter I'm using to set the main line wasn't the right one.
I'm not gonna say that I'm lost a lot of time, but I spend a lot of it to figure out what was wrong.
So please, Could you mention in the validation tests, when it's not succeeded, if the problem comes from the time