Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiplex lists using zip
#6
(Dec-02-2019, 04:29 PM)Clunk_Head Wrote: The current solution is O(2*(m*n)), it would be great to get it to O(m*n) like the original list comprehension.
Why do you think it is O(2*(m*n)) ? Please explain.

(Dec-02-2019, 04:07 PM)Clunk_Head Wrote: but is there a way to do it without creating an iterable and then iterating though it to create the string?
How do you think this could be possible?
In your first code example you are creating two iterables called values and suits.
How do you want to do what you want to do without these?
Reply


Messages In This Thread
Multiplex lists using zip - by Clunk_Head - Dec-02-2019, 03:23 PM
RE: Multiplex lists using zip - by ichabod801 - Dec-02-2019, 03:42 PM
RE: Multiplex lists using zip - by Clunk_Head - Dec-02-2019, 04:07 PM
RE: Multiplex lists using zip - by ichabod801 - Dec-02-2019, 04:26 PM
RE: Multiplex lists using zip - by Clunk_Head - Dec-02-2019, 04:29 PM
RE: Multiplex lists using zip - by ThomasL - Dec-02-2019, 04:34 PM
RE: Multiplex lists using zip - by Clunk_Head - Dec-02-2019, 05:16 PM
RE: Multiplex lists using zip - by ThomasL - Dec-02-2019, 05:33 PM
RE: Multiplex lists using zip - by Clunk_Head - Dec-02-2019, 06:04 PM
RE: Multiplex lists using zip - by ichabod801 - Dec-02-2019, 06:24 PM
RE: Multiplex lists using zip - by Clunk_Head - Dec-02-2019, 06:45 PM
RE: Multiplex lists using zip - by ThomasL - Dec-02-2019, 06:44 PM
RE: Multiplex lists using zip - by DeaD_EyE - Dec-02-2019, 07:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Split dict of lists into smaller dicts of lists. pcs3rd 3 2,443 Sep-19-2020, 09:12 AM
Last Post: ibreeden
  sort lists of lists with multiple criteria: similar values need to be treated equal stillsen 2 3,318 Mar-20-2019, 08:01 PM
Last Post: stillsen

Forum Jump:

User Panel Messages

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