I have an array something like this
a=[
[1,6,6,8,0],
[7,3,2,6],
[7,3,2]
]
Here, I need to find the maximum length of the inside array. And I need to replace other with '0'.
For example the first array has 5 elements, which is the maximum length, so I need to put '0' to the 2nd and 3rd array till reaches the maximum lengh (i.e 5). What should I do here?