Re: [python-uk] A stack with better performance than using a list

2017-06-13 Thread Jonathan Hartley
mized version, but a pragmatic developer would, in my opinion, hesitate to do that without any actual evidence that the problem required it. Steve On Thu, Jun 8, 2017 at 5:27 PM Jonathan Hartley wrote: Yep, that's a great elimination of the suspicious small overheads. line_profiler i

Re: [python-uk] A stack with better performance than using a list

2017-06-13 Thread Jonathan Hartley
On 06/13/2017 09:04 AM, Mark Lawrence via python-uk wrote: On 07/06/2017 18:50, Jonathan Hartley wrote: I recently submitted a solution to a coding challenge, in an employment context. One of the questions was to model a simple stack. I wrote a solution which appended and popped from the end

<    1   2