79475071

Date: 2025-02-28 09:40:29
Score: 1
Natty:
Report link

If the linkedlist has one node, this condition will return True , which indicates that the linkedlist is empty? is that how it suppose to be. I think

def isEmpty(self): 
     return self.head is None

will be better

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Debdeep Das