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
- Data Structures
- Arrays
- Dynamic Array
- Discussions
Dynamic Array
Dynamic Array
Sort by
recency
|
2004 Discussions
|
Please Login in order to post a comment
Horribly written problem statement. Please overhaul the description. It is unreadable.
The solution does not go beyond four or five elementary operations, so it is quite an introductory problem, which is fine. But the question description is so horribly written. It's like reading someone's notebook that is written with a pseudo-language that only the author understands. Where's the introduction? What's the matter with xor? Because ^ is pretty cool? In the description it is said that query is made of string, but in the code it's a double vector of int out of nowhere, why?
Here is my c++ solution, you can watch the explanation here : https://youtu.be/MYdQxgmJ4Sk
Solution in Python3. The wording is initially very confusing but just try to follow the instructions given.