pls make the test cases open after contest
sometime we spend considerable amount of time thinking of a logic and it does not pass for certain cases
Its get frustrating because:-
now am confused whether my logic needed slight modification or it was completely wrong at the beginning
Just coz my approach does not match with the editorialist(or author or tester) does not mean that it was wrong
Sorry but I must say that some of the editorials are really hard to understand due to uncommented, poorly written code with stupid variable names
I have literally seen code on many editorials having variable called ‘MAGIC’
Edit:- See the author’s and editorialist’s solution to below problem
PP - Editorial
Seriously!! are u kidding me…
1 Like