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.
- Prepare
- Algorithms
- Strings
- Two Two
- Discussions
Two Two
Two Two
Sort by
recency
|
89 Discussions
|
Please Login in order to post a comment
Solution worked to 7 test. Java 8
Here is my solution in java, javascript, python, C, C++, csharp HackerRank Two Two Problem Solution
the key is to use a trie data structure I did it in C so I need to code a very basic trie DS from scratch
here is the solution of Two Two Click Here
I was able to solve it using Python 3 after 7 attempts and got top 34% so I optimized it further using bit operator but same result, can anyone help me to optmized it further:
Here is the code