Whats the error in this code
hint-subarrays-with-distinct-element
Namanjain123
(Naman jain)
April 17, 2020, 5:27pm
#1
Ankit003
(Ankit Kumar)
April 20, 2020, 8:28am
#2
You are starting with end=1, it should be 0 as elements are stored in 0 based indexing.