Cheating with binary tree goop

This commit is contained in:
2023-10-24 15:42:42 -04:00
parent 10ec594031
commit ffb16efcdc
3 changed files with 64 additions and 1 deletions
+1 -1
View File
@@ -46,8 +46,8 @@ class TreeNode:
for key, value in [
("val", self.val),
("right", self.right),
("left", self.left),
("right", self.right),
]:
if value is not None:
filtered_parts.append((key, value))