Back to Browse

🔍 Building Binary Search Trees in C | TDD with CLion | Insertion + Data Structures 🌲

409 views
Apr 24, 2025
37:23

Welcome back, C enthusiasts! In this video, we’re going beyond just showing you the finished code — we're walking through how a real engineer develops that code from the ground up. 💡 Sure, you could search for a binary search tree insertion function and copy it — but that won’t teach you why it works or how to build it yourself. This video is all about the process behind the code. 🚧 What’s Covered: - Basics of what a binary search tree is - Designing the data structures behind binary search trees - Step-by-step development of the insertion algorithm - Using Test-Driven Development (TDD) to drive the implementation - Working inside CLion for efficient C development This is aimed at intermediate C programmers who want to understand not just what to code, but how to approach writing and testing real-world C programs. 🧠 You’ll Learn: - How to define a clean binary tree structure - How to insert nodes while maintaining BST properties - How TDD guides you toward correct, maintainable code 🛠️ Tools Used: - CLion (JetBrains IDE) - C Language - TDD techniques with unit testing 👍 If this helped you think like a developer, hit like, subscribe, and tap that bell 🔔 so you don’t miss the next part! #CProgramming #BinarySearchTree #DataStructures #CLion #TDD #IntermediateC #CodeLikeAnEngineer #UnitTesting TIMESTAMPS 0:00 Introduction 0:23 What is a binary search tree 2:27 Coding the struct we need 4:02 Creating a node 8:29 Inserting our first node into the tree 12:24 Cleaning up our tests 17:45 Inserting a node to the right of the root 21:35 Inserting further down the tree 33:50 A couple more insertions to be sure ABOUT MY CHANNEL My channel is about good software engineering practices. We cover introductions to programming in C and Java. But I also have lots of software and computer engineering topics like PIC programming, advanced programming techniques, and things that distinguish good code from code that works. Check out my channel here: https://www.youtube.com/@wizardcraftcode Don’t forget to subscribe! CHECK OUT MY OTHER VIDEOS: C Programming Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9Ag0CZdGTUm3FWhBDX28B0Dj Intro to Java Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9Ajo6LH_-g7dXjZemaQ5QXnV Software Engineering Topics Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9AgMHq42vUXHkXEws3JWdnDb

Download

0 formats

No download links available.

🔍 Building Binary Search Trees in C | TDD with CLion | Insertion + Data Structures 🌲 | NatokHD