Doubt in code of this problem


in this code do we need to initialize xpoints and ypoints unordered maps zero as we have not initialized before or is it fine.
like for(i=0;i<n;i++)
{ xpoints[ [a[[i] ]=0; ypoints[ [a[[i] ]=0; }
before doing for loop
xpoints++ ypoints++
in the given code

hi @himanshuanand729 no need by default it will be zero