Skip to content

Latest commit

 

History

History

525

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Solution

  • Change nums 0 to -1
  • Calculate the max length of subarray which sum is zero
  • Use Map to statistic the min index of ever prefix sum