why am i getting tle
Exist or not 628
@neeleshr628 hey neelash
since the testcases can be very large, it is preferable that you insert the input values in the hashmap by using insert function and then check by using count function instead of doing m[a[i]] as false, otherwise for very large inputs, you will get TLE.
and now try if you unable to implement do ask I will give you reference.