Angad Sandhu
Search
Browse

230_Kth_Smallest_Element_in_a_BST

Source name
230_Kth_Smallest_Element_in_a_BST.py
# File: Leetcode/Solutions/230_Kth_Smallest_Element_in_a_BST.py

"""
Problem Number: 230
Problem Name: Kth Smallest Element in a BST
Difficulty: Medium
Tags: Tree, Depth-First Search, Binary Search Tree, Binary Tree, Neetcode 150
Company (Frequency): Amazon, Apple, Facebook, Google, Microsoft
Leetcode Link: https://leetcode.com/problems/kth-smallest-element-in-a-bst/description/

DESCRIPTION

Given the `root` of a binary search tree, and an integer `k`, return the `kth` smallest value (1-indexed) of all the values in the tree.
"""

Browse the library