mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
fix(ci): Update pre-commit hooks and apply new black (#4359)
* fix(ci): Update pre-commit hooks and apply new black * remove empty docstring
This commit is contained in:
@ -150,7 +150,7 @@ class BinarySearchTree:
|
||||
self.inorder(arr, node.right)
|
||||
|
||||
def find_kth_smallest(self, k: int, node: Node) -> int:
|
||||
"""Return the kth smallest element in a binary search tree """
|
||||
"""Return the kth smallest element in a binary search tree"""
|
||||
arr = []
|
||||
self.inorder(arr, node) # append all values to list using inorder traversal
|
||||
return arr[k - 1]
|
||||
|
Reference in New Issue
Block a user