I'd say both weird and coincidental :-). I'm the author of that StackOverflow question and have nothing to do with that paper. As far as I understand arXiv (I'm not familiar with it), the paper was
submitted to arXiv
before the StackOverflow answer that inspired my question, and
published by arXiv
after my StackOverflow question:
https://arxiv.org/list/cs.DS/recent