This solution maybe clever, but as for me it's unreadable.
PEP8 recommended max line length is 79.
So I think it shouldn't be considered as best practice.
Check the solution from @bidouille. I liked it.
Could anyone explain why this solution is 'Best Practice'?
Looks like we conplitely recreate whole list here instead of adding the needed element into the index position.
What if the linked list contains 1500 elements? Won't we get the RecursionError?
awesome solution!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yeah, that combination is really best! Thank you for the update :)
This solution maybe clever, but as for me it's unreadable.
PEP8 recommended max line length is 79.
So I think it shouldn't be considered as best practice.
Check the solution from @bidouille. I liked it.
Really nice solution. However truncating hello to hell makes it weird
got it. Thank you @Azuaron for explanation!
nice Square subclassing :)
I like BeautifulSoup better
Could anyone explain why this solution is 'Best Practice'?
Looks like we conplitely recreate whole list here instead of adding the needed element into the index position.
What if the linked list contains 1500 elements? Won't we get the RecursionError?
This solution works. But I think shouldn't be considered as best practices or clever solution since can be optimized
This comment is hidden because it contains spoiler information about the solution
Loading more items...