+ 1

Multidimensional arrays

I'm having trouble to do a subtraction between the arrays Bodega - minAmount I've trained a lot for this in python... and here I can't find a way... I've tried a lot but nothing seems to work, 🥲 https://code.sololearn.com/ca147A19A10A/?ref=app

14th Jul 2021, 10:11 PM
Jace🎭
Jace🎭 - avatar
4 Respostas
+ 2
check this code: https://code.sololearn.com/cBMaSu9T1Ayu/?ref=app is this what you're trying to do?
15th Jul 2021, 12:21 AM
visph
visph - avatar
+ 2
I'm not sure what you're trying to do here, but for your inner loop condition, instead of using 'c < 4' try using the length of the inner array like bodega[r].length.
15th Jul 2021, 12:14 AM
ChaoticDawg
ChaoticDawg - avatar
0
Yes, it is. 😌
15th Jul 2021, 2:02 AM
Jace🎭
Jace🎭 - avatar
0
Hi there
16th Jul 2021, 3:32 AM
Rafi Ahmed
Rafi Ahmed - avatar