Test Case Creation Logic


#1

if [2,2] is a valid test case then can [3,3] be also a one because if we use this test case then the logic for the editorial solution of creating a new array of size A.size() gives a IndexOutOfBound Exception.

So either the test case is not valid or the solution needs to be changed.

Would love to see the changes done as per need for future visits.