79333877

Date: 2025-01-06 17:45:54
Score: 2.5
Natty:
Report link

Remove && node.children.length > 0 from hasChild.So the hasChild should looks like, hasChild = (_: number, node: FoodNode) => !!node.children;

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Monali Basu