Programming puzzle: Longest list of regular numbers?

01192021, 04:58 PM
(This post was last modified: 01192021 05:10 PM by C.Ret.)
Post: #35




RE: Programming puzzle: Longest list of regular numbers?
(01182021 05:44 PM)John Keith Wrote: The HP48G and later have a builtin SORT command but it is notoriously slow. Fortunately there is LSORT which is orders of magnitude faster. If you plan to use an LSORT instruction, you may can use a code like the one I made to test my algorithm with a homemade HP28S's LSORT program: Code: « → r « HRAZ "Enumaring..." 1 DISP No hashtable here, all the value are collected in the 'H' list, then 'H' is sort and the expected result extract from the sorted list directly. This is the exact algorithm I use on my HP Prime which have a powerfull parametric SORT instruction. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)