Skip to content

Yusuficandan/Binarysearchtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Binarysearchtree

Binary Search Tree Projesi

[7, 5, 1, 8, 3, 6, 0, 9, 4, 2] dizisinin Binary-Search-Tree aşamalarını yazınız.

Örnek: root x'dir. root'un sağından y bulunur. Solunda z bulunur vb.

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]


root'u 4 olarak almış olduk

  • Tree mantığı çevçevesinden bakarsak;
  • solunda 2, sağında 6 bulunur
  • 6'nın solunda 5 sağında 8,
  • 2'nin solunda 1 sağında 3,
  • 1'in solunda 0,
  • 8'in solunda 7 sağında 9 bulunur

            4   
       2          6
    1    3      5    8
  0                7    9

About

Binary Search Tree Projesi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published