Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Faster algorithm
#3
Another thought - from your description you want just the unique values. A set is a collection with unique values. Convert the list to a set, then back again. Voila. Bet that will be really fast.
Reply


Messages In This Thread
Faster algorithm - by qweasdzxcqweasd - May-05-2020, 04:23 PM
RE: Faster algorithm - by deanhystad - May-05-2020, 05:07 PM
RE: Faster algorithm - by jefsummers - May-05-2020, 09:05 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020