Skip to content

Instantly share code, notes, and snippets.

@myavuzokumus
Created March 21, 2023 22:49
Show Gist options
  • Save myavuzokumus/967d0161fc72cb4f67af880edaec481d to your computer and use it in GitHub Desktop.
Save myavuzokumus/967d0161fc72cb4f67af880edaec481d to your computer and use it in GitHub Desktop.
Binary-Search-Tree gösterimi
[7, 5, 1, 8, 3, 6, 0, 9, 4, 2] -> Binary-Search-Tree
En iyi Big-O değeri için ortanca değer alınmaya çalışılmıştır.
Bu sayede en yüksek veya en küçük değeri alarak Big-O değerini n olmasının önüne geçilmiştir.
```
7
/ \
5 8
/ \ \
1 6 9
/ \
0 3
/ \
2 4
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment