Skip to content

Conversation

@diogon01
Copy link

  • Node class with id and parent, type hints, repr, eq, and hash.
  • NodeManager class supporting single removal and recursive cascade removal.
  • Robust input validation and immutability of the input node list.
  • Optimized DFS for remove_cascade ensuring O(n) complexity for hierarchical operations.
  • Code follows PEP8, type hints, and senior-level best practices.
  • All pytest tests pass.

- Node class with id and parent, type hints, __repr__, __eq__, and __hash__.
- NodeManager class supporting single removal and recursive cascade removal.
- Robust input validation and immutability of the input node list.
- Optimized DFS for remove_cascade ensuring O(n) complexity for hierarchical operations.
- Code follows PEP8, type hints, and senior-level best practices.
- All pytest tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant