We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
If str -> int is not very costly, why shouldn't we directly use the map function after the input to convert the list of strings to list of ints and then pass this list of ints to the bigSort function? (Python 3)
This way our fuction will already have a list of integers to sort and no concern about the 'key' argument.
Big Sorting
You are viewing a single comment's thread. Return to all comments →
If str -> int is not very costly, why shouldn't we directly use the map function after the input to convert the list of strings to list of ints and then pass this list of ints to the bigSort function? (Python 3) This way our fuction will already have a list of integers to sort and no concern about the 'key' argument.