We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Thanks! I did not knew about this. I was doing it in C# (using List) and getting a timeout. Now I used HashSet and it works fine. I just had to change the List to HashSet. I will try reading further on this.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weighted Uniform Strings
You are viewing a single comment's thread. Return to all comments →
Thanks! I did not knew about this. I was doing it in C# (using List) and getting a timeout. Now I used HashSet and it works fine. I just had to change the List to HashSet. I will try reading further on this.