Skip to content

[codex] Refactor binary tree right side view#78

Merged
eselyavka merged 1 commit into
masterfrom
refactor-binary-tree-right-side-view
May 23, 2026
Merged

[codex] Refactor binary tree right side view#78
eselyavka merged 1 commit into
masterfrom
refactor-binary-tree-right-side-view

Conversation

@eselyavka
Copy link
Copy Markdown
Owner

Summary

Refactor LeetCode 00199 to keep a single BFS solution for binary tree right side view.

Details

  • Replace list-based queue operations with collections.deque.
  • Remove the duplicate Solution2 implementation that did the same level-order traversal work.
  • Return [] for an empty tree and cover that case in the unit test.

Validation

  • python3 practice/leetcode/solutions_00000/solution_00199.py
  • Commit hook: pytest (805 passed) and pylint on changed Python files (10.00/10)

@eselyavka eselyavka marked this pull request as ready for review May 23, 2026 19:57
@eselyavka eselyavka merged commit f9f6976 into master May 23, 2026
4 checks passed
@eselyavka eselyavka deleted the refactor-binary-tree-right-side-view branch May 23, 2026 19:58
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