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:
Dhruv Manilawala
2021-04-26 11:16:50 +05:30
committed by GitHub
parent 69457357e8
commit 6f21f76696
13 changed files with 26 additions and 27 deletions

View File

@ -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]