Post Reply 
HP49-HP50 : when {list of repeated solutions} —> {list with no rep. sol}
12-21-2022, 06:13 PM (This post was last modified: 12-21-2022 09:24 PM by Werner.)
Post: #5
RE: HP49-HP50 : when {list of repeated solutions} —> {list with no rep. sol}
Code:
\<<
  SORT
  DUP
  1.
  \<< DUP2 SAME DROPN \>>
  DOSUBS
\>>

Of course, SORT in this case, while also being O(n*log(n)), takes a lot of time.
Take LSORT instead ;-) It being a very faithful replacement though, it doesn't sort array objects, either.

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP49-HP50 : when {list of repeated solutions} —> {list with no rep. sol} - Werner - 12-21-2022 06:13 PM



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