Advent of Code 2022 - Beginner's Guide - Day 7: No Space Left On Device

preview_player
Показать описание
Happy December!

This video talks you through how to approach this problem and gives you an opportunity to pause before spoilers come on the screen.

Although I provide a solution in C#, this guide is designed to give you a strategy for ANY language you might used.

#adventofcode #coding #learnprogramming #learntocode #codingchallenge #csharp #captaincoder #adventofcode2022 #aoc #aoc2022 #tutorialcoding

00:00 Intro
0:58 Story so Far
1:53 Problem Introduction
3:24 Overall Strategy
4:11 Defining ElfFile
5:40 How to Test ElfFile
9:39 ElfFile Implementation
10:13 Defining ElfDirectory
11:24 ElfDirectory Parse Test
14:38 ElfDirectory Implementation
15:23 Add Files to ElfDirectory
16:45 AddFile and Size Implementation
17:31 Getting Children and Files
18:19 Parsing Methods
20:41 Parsing Method Implementations
22:18 Building the File System
24:15 BuildFileSystem Implementation
25:13 Find All Directories
26:42 Find All Directories Implementation
27:44 Putting it All Together
28:22 Getting a Gold Star
29:18 Thanks for Watching
Рекомендации по теме
Комментарии
Автор

Should I feel ashamed that I watch vids designed for kids learning programming while I am 30 years old?
Good job, it really helped me A LOT.

DShazin
Автор

At 28:12 it says on the screen "If the directory has a size <= 10000" - there is a zero missing.
Thanks for the great video.

simonlemcke
Автор

Trying to do this in C++, having trouble getting an elfDirectory struct to contain its parent. I'm trying to use pointers but it's hard to get my mind around it

zen_arcade