Closed darshita-kumar closed 4 years ago
Leetcode accepted. Please review. Used a dictionary for reducing time complexity.
I have removed the commented question from the py file. As for optimizing time complexity I have tried but this one is the best I could do considering python language. Space complexity is less. Thanks! :)
Leetcode accepted. Please review. Used a dictionary for reducing time complexity.