in this code we have inserted a new prefix sum if pre-k does not already exist. but shouldn’t we insert pre always if it does not already exist?
Doubt in code implemented in video
hello @Akshita99
yeah u r right , that is a mistake in the video.
insert pre in the map if it is not there,
ok got it. thank you