Programming puzzle: Longest list of regular numbers?
|
01-19-2021, 04:58 PM
(This post was last modified: 01-19-2021 05:10 PM by C.Ret.)
Post: #35
|
|||
|
|||
RE: Programming puzzle: Longest list of regular numbers?
(01-18-2021 05:44 PM)John Keith Wrote: The HP-48G and later have a built-in 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 home-made HP-28S's LSORT program: Code: « → r « HRAZ "Enumaring..." 1 DISP No hash-table 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)