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
- Bit Manipulation
- XOR key
- Discussions
XOR key
XOR key
Sort by
recency
|
48 Discussions
|
Please Login in order to post a comment
This is my code but I am getting timeout exceeded and I am not able to optimize further
Here is XOR key problem solution in Python Java C++ and c programming - https://programs.programmingoneonone.com/2021/07/hackerrank-XOR-key-problem-solution.html
how to find xor key from xor? i have some encoded xor string but idk how to decode it, this is my school assigment
pFYK+3fxjlh+NRQAWkljQgBT/dDqzoa4pA/ku/Gz9e4=
https://pastebin.com/51RRGvGL Do check my code for any doubts regarding this question simply using a trie solved this question. Just maintain a vector at every node whose number indexes are on the way and check whether to take such path there exists a number in range l to r using a lower_bound if there continue such maximum path or else the other. {all those indexes of numbers will be sorted because of the increasing way of adding these numbers to trie} Max Space and time:O(16*N)