ShannonHung / ShannonHung.github.io

2 stars 0 forks source link

LeetCode 課前預習 - 掌握 Hash Table 指南 | Shannon's Blog 🐟 技術 | 生活 | 旅行 #120

Open ShannonHung opened 3 months ago

ShannonHung commented 3 months ago

https://shannonhung.github.io/posts/lecture-binary-search-tree/

簡介 相信各位在準備面試的時候,Binary Search Tree 這個資料結構一定會被問到,他是 Tree 大本營中最先學到的一種演算法,在資料的搜尋、插入、刪除上都有很好的表現,在Balanace Tree的狀況下可以達到O(logn),所謂的Balanace Tree就像是左邊跟右邊的枝葉數量差不多,不會出現左邊很多右邊很少的情況,這樣才能達到O(logn)的時間複雜度。 定義 那我們