lowest_common_ancestor.py static type checking (#2329) · coderjack/algorithms-in-python@2eaacee · GitHub
Skip to content

Commit 2eaacee

Browse files
kanthuccclauss
andauthored
lowest_common_ancestor.py static type checking (TheAlgorithms#2329)
* adding static type checking to basic_binary_tree.py * Add static type checking to functions with None return type * Applying code review comments * Added missing import statement * fix spaciing * "cleaned up depth_of_tree" * Add doctests and then streamline display() and is_full_binary_tree() * added static typing to lazy_segment_tree.py * added missing import statement * modified variable names for left and right elements * added static typing to lowest_common_ancestor.py * fixed formatting * modified files to meet style guidelines, edited docstrings and added some doctests * added and fixed doctests in lazy_segment_tree.py * fixed errors in doctests Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent d3199da commit 2eaacee

2 files changed

Lines changed: 107 additions & 50 deletions

File tree

Lines changed: 68 additions & 33 deletions

data_structures/binary_tree/lowest_common_ancestor.py

Lines changed: 39 additions & 17 deletions

0 commit comments

Comments
 (0)