79519084

Date: 2025-03-19 03:55:06
Score: 1.5
Natty:
Report link

We do not define abstract methods in Go because we don't have inheritance in Go. Use this approach:

Replace BaseTreeNode with an interface satisfied by all node types.

For AVL trees nodes, declare all fields and methods in AVLTreeNode. Do not embed anything.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Butch WIlmore