XOR Subsequences Discussions | Algorithms | HackerRank
  • + 1 comment

    Can anybody explain why is this a convolution problem? I can't understand why

    • + 0 comments

      Probably because convolutions are usually written with ⊕ just as xor is. More seriously because there is a sliding window which is the main feature of convolutions.

      I do not see yet how to think about the problem with convolutions but hopefully it helps me to find a more elegant solutions that the brute-force Python onliner I came with (with way too many imports).