You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your Linked List implementation, I think temp is wrongly spelled as tamp. The code works but for readability purpose all tamp should be replaced by temp.
Also, I find it strange to name the head with a capital Head. Generally, capitalization in Python is saved for Class names, not class attributes or methods. If you think the code should be more Pythonic, please consider changing all Head to head in the class attributes for Linked List.
The text was updated successfully, but these errors were encountered:
Hi,
In your Linked List implementation, I think
temp
is wrongly spelled astamp
. The code works but for readability purpose alltamp
should be replaced bytemp
.Also, I find it strange to name the
head
with a capitalHead
. Generally, capitalization in Python is saved for Class names, not class attributes or methods. If you think the code should be more Pythonic, please consider changing allHead
tohead
in the class attributes for Linked List.The text was updated successfully, but these errors were encountered: