Sort 27 Discussions, By:
Please Login in order to post a comment
who writes such obfuscated totally ununderstandable editoriols which are totally useless in terms of clarifying the solution. I wonder how many people could understand it, I didnt! I am very disappointed by the quality of the editoriols where no concrete examples are given or diagrams to illustrate the solution just complex incongruent mathematical relations hard to wrap your head around. This is is not a research paper for God sake!!
For the input, the answer is 18. Can anybody explain why?
Can anyone explain the implementation of 'Inclusion–exclusion principle' from Editorial ?
The author says that he is targeting the value within the intersection of sets, i.e. |A^B^C|, but, from the code I see the unioun of sets, i.e.
|A| + |B|+ |C| - |A ^ B| - |A ^ C| - |B ^ C| + |A ^ B ^ C| = |A v B v C|
What an interesting problem and very educative to learn Binary Indexed Tree. Still I think this problem deserves a "Difficult" status.
Why is (1,3,2,4) not considered a valid sequence