Re: Coding a java app for more in depth level rank analysis!
Not sure if you already doing this, but you could use a static array to store every song in-game. That way you can do lookups in O(log n) on a sorted array (O(1) if you already know the index) rather than O(n) whenever you need to grab a song for whatever purpose.
Not sure if you already doing this, but you could use a static array to store every song in-game. That way you can do lookups in O(log n) on a sorted array (O(1) if you already know the index) rather than O(n) whenever you need to grab a song for whatever purpose.








Comment