Can someone take a look into my code and see why it gives wrong result on every test case...?
My idea was to start from index 0 on list and take names till I find N names, then I just try to cut some part of if and then update the min, then continuing adding the next but removing first and so on and when I get again N names I try to cut some part...
Code Removed...
My idea was to start from index 0 on list and take names till I find N names, then I just try to cut some part of if and then update the min, then continuing adding the next but removing first and so on and when I get again N names I try to cut some part...
Code Removed...