LeetCode: 230-Kth Smallest Element in a BST 解題紀錄
Last Updated on 2022-04-18 by Clay
題目
Given the root
of a binary search tree, and an integer k
, return the kth
smallest value (1-indexed) of all the values of the nodes in the tree.
Last Updated on 2022-04-18 by Clay
Given the root
of a binary search tree, and an integer k
, return the kth
smallest value (1-indexed) of all the values of the nodes in the tree.
Last Updated on 2022-04-18 by Clay
在建立 Python 函式的過程中,有時我們會傳入參數讓建立的函式去處理,或許我們還會設定該參數的預設值,讓參數在我們沒有傳入任何值的情況下,仍能以一個預設(default)值去執行函式。
Read More »[Python] 函式使用可變物件當作參數預設值存在的問題