AlgoMaster Logo

Contiguous Array

nums=[0, 1, 0]
0 / 11
010sum = 0maxLength = 0map = {}
algomaster.io
Step:Initialize sum=0, maxLength=0, map={0:-1}