Book allocation problem


what is wrong in this code? it is not passing any test cases

Hey @shubhangis248

        for(int j=0;j<n;j++)
        {
            cin>>a[j];//a[j] instead of a[i]
        }

If this resolves your query then please mark it as resolved :slight_smile: