Jesse and Cookies

  • + 0 comments

    My langugage does not have built-in heap and I didn't want to implement it. I sorted array and used binary search to find the right place for a new cookie. It worked for most cases, but a few of them failed by timeout.