(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?