Easy Linked Lists, Recursion, Unions
Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=gvzTK8OkXhs
Today we ran through a really simple example of how to make a linked list, how they can go wrong in terms of not deleting, double deleting, and use after freeing. We started by making them manually and then working on some more automated ways of playing with them.
We'll study them more in 41 including a more proper and encapsulated way of doing them.
We went over recursion a bit, too.
A student then asked about unions, which are one of the more obscure corners of C. C++ has replaced them mostly with variants, but they still have some uses in networking code or to minimize memory consumption when you know variables couldn't be needed at the same time.
Other Videos By Bill Kerney
2021-12-01 | Deductive, Inductive, and Abductive Reasoning |
2021-12-01 | End of the Year Housekeeping, UE5 overview |
2021-12-01 | Unreal Engine 5, Game Over Screen, Timers |
2021-11-30 | Intro to Stats and Statistical Testing |
2021-11-29 | Java for C++ Programmers |
2021-11-29 | Week 15 Day 1 - Set Theory Review |
2021-11-24 | Lists Part 2, Java |
2021-11-24 | Food Support for Students |
2021-11-23 | C++ Quadtree Implementation Part I |
2021-11-23 | Andrew's Monotone Chain, Conditional & Joint Probability, Bayes' Theorem |
2021-11-22 | Easy Linked Lists, Recursion, Unions |
2021-11-22 | In Group Bias; Guest Speaker Shelby Weatherbee on Critical Thinking |
2021-11-19 | Set Theory Part II |
2021-11-19 | Histogramming in C++ with Unordered Maps |
2021-11-19 | Quadtrees Pt 2 |
2021-11-19 | Game Design of Dune / the built in variables and functions in Quakeworld QuakeC |
2021-11-19 | Probability Part Deux, Monte Carlo Simulations |
2021-11-18 | Lists in the C++ Standard Library |
2021-11-17 | Motivated Reasoning; Set Theory |
2021-11-16 | Colors are Weird |
2021-11-16 | Expected Values and Weighted Averages |
Tags:
csci 40
recursion
linked lists
lists
unions
c++