ArrayBsearch Bug/deadlock with Terminal not responding - page 2

 
nicholishen:

Or if you're looking for a simple function replacement...

I ran some edge cases on TimeQuickSearch(). Seems solid. Nice job.

 
nicholishen:

Or if you're looking for a simple function replacement...

Hello nicholishen,

thank you very much for your answers and solutions!


I take the second one I think :-)


Always if there are built in functions I dont think of making it myself on the first hand. Feels like reinventing the wheel a bit.

But you are right. The quicksearch code is there in CArray so why not just use it directly.

The TimeQuickSearch is the better way, because  OnCalculate-time[] is already sorted.


Great work man!

I am very thankful for this!

JHawk

 
Anthony Garot:

I ran some edge cases on TimeQuickSearch(). Seems solid. Nice job.


Right on... I can't take credit for the QuickSearch algo though... :)

 
nicholishen:

Right on... I can't take credit for the QuickSearch algo though... :)

Yeah,

but thats not the point. You helped me find my way. The quicksearch code and algo is nearly a copy an paste from CArray, I know.

:-)

Reason: