On Monday, 21 July 2025 at 16:13:44 UTC, monkyyy wrote:
On Monday, 21 July 2025 at 14:56:41 UTC, Serg Gini wrote:
But array doesn't look right..
If you want a balanced ("always sorted") structure with "filter" (ability to make some requests for the data) - this looks more like some Tree structure

Your thinking in classical theory and textbook read`n; practice has no such restriction

If performance is not required - of course you can sort every time when you appending new elements. classical theory and textbooks were created to do that in a not wacky way.

Reply via email to