Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Competitive programming problems are often designed with intended solution technique in mind first so whatever the trendy thing to do is finds its way into the competitions. Segment trees used to be popular but less so now because it's unfair to some languages. Python and C++ competitors can often work around a segment tree with a sortedlist/ordered_set oneliner while someone using Java is coding it from scratch or resorting to a "hackpack".


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: