@saljam_ the more i think of it, the less I'm sure of priority queues. But it's as good as anything else...
-
-
@saljam_ you also want to be able to get elements to left and right, and above/below as well, right?
1 reply 0 retweets 0 likes -
Replying to @increpare
@saljam_ clearly what you want is an ordered list which is ordered on elements of a doubly linked list :P
2 replies 0 retweets 0 likes
@saljam_ my approach is to have a different data structure optimised for each operation, and to keep them synced (1 caching bug remains :| )
10:37 AM - 6 Mar 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.