On 13/06/2017 16:29, Jonathan Hartley wrote:
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 sol
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 o
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 of a list. This worked,
but failed with timeouts on their las
Very interesting! Thanks for digging deeper and sharing.
I was thinking about horrible complicated structures like storing the
'add_to_first_n' params in parallel to the stack, to apply them at 'pop'
time, which doesn't work at all. As is so often the case with these
things, your solution of
You are right, when popping an empty stack I should probably raise.
On 2017-06-08 13:06, Samuel F wrote:
It may have failed for a different reason, (hard to say without the
original question and answer).
In the case where the stack is empty, you are returning None, was that
the requirement? (
Hi All,
In case you might be interested, my company Arctic Shores is looking for a
Senior Python Developer to join me and my team in sunny Manchester. Full
details here:
http://pythonjobs.github.io/jobs/arctic-shores-senior-python-developer.html
If you've ever yearned to work in the Beautiful No