Please help me in this question what is error in m code

@kailash_01 result of mini*b[i] may exceed int limit so you shoud use typecasting to handle this calculate your cost like this cost+=(long long)mini*b[i];

thanku so much !!! :slight_smile:

1 Like