challenge: find 2 most important ints from array

Miscellaneous Forums/General Discussion/challenge: find 2 most important ints from array

Well there are several strategies for solving this particular problem - most would probably revolve around an associative array, which in BlitzMAX, pretty much means a TMap. If you care to write your own priority queue that could also be an interesting solution. Or if speed isn't really your worry, a jagged array could provide a solution.