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.
Weighted Uniform Strings
Weighted Uniform Strings
Sort by
recency
|
794 Discussions
|
Please Login in order to post a comment
Simple C++ Solution, video here : https://youtu.be/xhpzPQBB9ts
Simple C++ solution:
My Java solution:
I managed to find a much faster solution using sets!
My Python solution is too slow and doesn't pass a lot of the test cases. Can anyone help me fix my code?
I had the same problem. I got rid of the sum function and used multiplication. All tests passed.