Home
Categories
EXPLORE
True Crime
Comedy
Society & Culture
Business
Sports
History
Fiction
About Us
Contact Us
Copyright
© 2024 PodJoint
00:00 / 00:00
Sign in

or

Don't have an account?
Sign up
Forgot password
https://is1-ssl.mzstatic.com/image/thumb/Podcasts125/v4/9a/29/41/9a2941dc-bdcb-9910-e33a-52e2215a1433/mza_7390528036290731206.jpg/600x600bb.jpg
The Productive C# Podcast
Andrea Angella - Senior Software Engineering Manager, former Microsoft C# MVP
52 episodes
2 days ago
Empowering C# Software Engineers to Progress in Their Career and Become Senior Technical Leaders — Without Burning Out
Show more...
Technology
RSS
All content for The Productive C# Podcast is the property of Andrea Angella - Senior Software Engineering Manager, former Microsoft C# MVP and is served directly from their servers with no modification, redirects, or rehosting. The podcast is not affiliated with or endorsed by Podjoint in any way.
Empowering C# Software Engineers to Progress in Their Career and Become Senior Technical Leaders — Without Burning Out
Show more...
Technology
https://d3t3ozftmdmh3i.cloudfront.net/production/podcast_uploaded/1505533/1505533-1551606987536-6c7bc6b1ffe31.jpg
Learn to code a Min Heap from scratch in modern C# (for .NET developers)
The Productive C# Podcast
28 minutes 39 seconds
3 months ago
Learn to code a Min Heap from scratch in modern C# (for .NET developers)
I was a little bored recently and thought to myself, why not implement a Heap data structure in C# from scratch just to keep my mind sharp? 🙂I still remember the first time I came across this data structure at university — I was immediately fascinated. What a clever idea: representing a binary tree using an array and applying a simple invariant to build an in-place, stable sorting algorithm like HeapSort.Now, if you ask most engineers whether they could implement a heap from scratch, they'd probably say no — and that’s perfectly fine. But you don’t want to be just an average engineer, right?If you understand what a Heap is and how to use simple index math to navigate the tree up and down, you can figure out how to implement it — even if you don’t remember the details. Memorizing an algorithm is rarely helpful. Instead, focus on understanding the core concept. Once you do, you’ll find it surprisingly easy to reimplement it whenever needed.IMPORTANT: If you're solving a problem in .NET and need a heap, I strongly recommend using the built-in PriorityQueue class. It’s backed by a quaternary min-heap and optimized for performance. Still, it’s valuable to understand how it works under the hood — and you'll be surprised how few lines of modern C# it takes to implement your own.Happy C# coding!
The Productive C# Podcast
Empowering C# Software Engineers to Progress in Their Career and Become Senior Technical Leaders — Without Burning Out