Surprise Me!

Binary Search Tree Insertion Tutorial: Building a BST from Scratch Step by Step

2026-04-27 1 Dailymotion

In this hands-on tutorial, we build a binary search tree (BST) from scratch by inserting numbers one by one: 88, 21, 3, 6, 72, 34, 11, 1, 90, 65, 55, 17, 23, and 9. Watch as each node finds its correct position following BST rules, with clear explanations of left and right child decisions, parent pointers, and why the tree ends up looking a bit wonky but is still valid.<br /><br />We cover the full insertion process, verify the tree is a proper BST by checking inorder traversal (sorted order), confirm it's a connected acyclic rooted binary tree, and discuss tree height, time complexity (O(h) where h=6 for this tree), and why self-balancing trees matter for better performance.<br /><br />Great practice for computer science students, programmers learning data structures, or anyone prepping for coding interviews. No fancy animations - just real step-by-step drawing and reasoning.<br /><br />If you want more BST practice videos or specific insertion sequences, drop a comment below!<br /><br />00:00 Introduction to BST Practice<br />00:35 Insertion Sequence Overview<br />00:59 Rules for Building BST<br />01:30 Insert 88 as Root<br />02:20 Continue building the tree from input data<br />13:04 Finish building the tree<br />14:56 Clean Up Diagram<br />15:24 Verify Inorder Traversal<br />16:48 Confirm Tree Properties<br />19:23 Tree Height and Time Complexity<br />22:01 Search Example for 55<br />23:09 Log Time vs Actual Height<br />24:21 Conclusion and Future Topics<br /><br />binary search tree, BST insertion, binary search tree tutorial, build BST from scratch, data structures, algorithms, BST insertion step by step, binary tree, tree height, time complexity BST, coding interview prep, computer science, inorder traversal, self balancing trees<br /><br />=-=-=-=-=-=-=-=-=<br /><br />Thanks for watching!<br /><br />Find us on other social media here:<br />- https://www.NeuralLantern.com/social<br />- Twitter / X: https://x.com/NeuralLantern<br />- Rumble: https://rumble.com/c/c-3696939<br />- BitChute: https://www.bitchute.com/channel/pg1Pvv5dN4Gt<br />- Daily Motion: https://www.dailymotion.com/neurallantern<br />- Minds: https://www.minds.com/neurallantern/<br />- Odysee: https://odysee.com/@NeuralLantern:5<br /><br />Please show your support!<br /><br />- Buy me a coffee: https://ko-fi.com/neurallantern<br /><br />- Subscribe + Sharing on Social Media<br />- Leave a comment or suggestion<br />- Subscribe to the Blog: https://www.NeuralLantern.com<br />- Watch the main "pinned" video of this channel for offers and extras<br /><br />

Buy Now on CodeCanyon