- 15
- 874
Software Dev James
United Kingdom
Приєднався 8 сер 2023
Advent of Code 2024 Day 14 Python
Like, comment and subscribe for more!
Chapters
00:00 Intro
00:08 Part 1
10:41 Part 2
19:35 Outro
We solve the 2024 advent of code puzzle for day 14 using python. The part one for this puzzle would be fine to solve using a purley programitic approach, doing the robot movment, then bringing it back into the grid, 100 times over, but with the use of modular arithmetic we can do the calcualtion once per robot for all 100 steps at once. Part 2 is a bit difffernt from the last few days, but if you make an assumpotion on what the Easter Egg will look like (or visit the reddit) then you can have a few different approaches. I decided to look for a 3x3 block in the points for each itteration, but I have seen some neat ideas with x and y variance, enthropy and file previews!
My aim it to make a video for each days challenge, although those might not be on the day that the puzzle comes out! There will almost certainly be a few days missed and then a few videos pop up at once!
Im a profesional (Java) developer and so I try to use best practices where possible, but also remembering that these are fun puzzles and that we dont need to think about every single edge case. Id love to hear from you in the comments for suggestions of topics or something that you'd like me to talk about.
Set Up:
Currently I am using my 2024 macbook air and airpod microphone, so the audio isnt as great as I think it could be, but Im trying to find the right balance of getting something out there and making it as good as possible. If some of you like the content then i'll upgrade the audio quality as soon as I can!
Chapters
00:00 Intro
00:08 Part 1
10:41 Part 2
19:35 Outro
We solve the 2024 advent of code puzzle for day 14 using python. The part one for this puzzle would be fine to solve using a purley programitic approach, doing the robot movment, then bringing it back into the grid, 100 times over, but with the use of modular arithmetic we can do the calcualtion once per robot for all 100 steps at once. Part 2 is a bit difffernt from the last few days, but if you make an assumpotion on what the Easter Egg will look like (or visit the reddit) then you can have a few different approaches. I decided to look for a 3x3 block in the points for each itteration, but I have seen some neat ideas with x and y variance, enthropy and file previews!
My aim it to make a video for each days challenge, although those might not be on the day that the puzzle comes out! There will almost certainly be a few days missed and then a few videos pop up at once!
Im a profesional (Java) developer and so I try to use best practices where possible, but also remembering that these are fun puzzles and that we dont need to think about every single edge case. Id love to hear from you in the comments for suggestions of topics or something that you'd like me to talk about.
Set Up:
Currently I am using my 2024 macbook air and airpod microphone, so the audio isnt as great as I think it could be, but Im trying to find the right balance of getting something out there and making it as good as possible. If some of you like the content then i'll upgrade the audio quality as soon as I can!
Переглядів: 14
Відео
Advent of Code 2024 Day 13 Python (Mathematical Approach)
Переглядів 29День тому
Like, comment and subscribe for more! Chapters 00:00 Intro 00:58 Problem 02:20 Mathematical Derivation 07:42 Part 1 18:16 Part 2 20:33 Outro We solve the 2024 advent of code puzzle for day 13 using python, but mostly using a matheatical derivation for the solution. Whilst part 1 of this puzzle can be solved with an extend Euclidean Algorithm, and would be the usual way to approach these kinds o...
Advent of Code 2024 Day 11 Python
Переглядів 22День тому
Like, comment and subscribe for more! Chapters 00:00 Intro 00:08 Part 1 16:03 Part 2 17:19 Outro We solve the 2024 advent of code puzzle for day 11 using python. This puzzle involves magical numbers stones that either increase their number or split into two stones every time you blink! We go though some of the inital ideas on how to solve this puzzle, which leads us to the best implimentation, ...
Advent of Code 2024 Day 10 Python
Переглядів 34День тому
Like, comment and subscribe for more! Chapters 00:00 Intro 00:08 Part 1 17:21 Part 2 19:47 Outro We solve the 2024 advent of code puzzle for day 10 using python.This puzzle involves a topographical map, a map of heights, as a grid and we have to find routes from the 0s to the 9s, which would be a hike from the lowest point to a summit. We firstly write an alogrithm to be able to find each summi...
Advent of Code 2024 Day 9 Python
Переглядів 9414 днів тому
Like, comment and subscribe for more! Chapters 00:00 Intro 00:05 Part 1 13:16 Part 2 17:56 Outro We solve the 2024 advent of code puzzle for day 9 using python. This puzzle involves several parts that fit together. We use an array data structure to model a block of data, then use a method to consolidate that block of data according to the given rules. For part 2 the rules of this consolidation ...
Advent of Code 2024 Day 8 Python
Переглядів 5014 днів тому
Like, comment and subscribe for more! Chapters 00:00 Intro 00:05 Part 1 13:16 Part 2 17:56 Outro We solve the 2024 advent of code puzzle for day 8 using python. This puzzle involves a taking 2 nodes and calculating where their antinodes would be on the map. There are different sets of nodes, each with their own icons, and nodes of different icons do not interact. Part 1 involves calculating the...
Advent of Code 2024 Day 7 Python
Переглядів 7114 днів тому
Like, comment and subscribe for more! Chapters 0:00 Intro 0:18 Part 1 21:49 Part 2 31:00 Outro We solve the 2024 advent of code puzzle for day 7 using python. This puzzle involves a target number and a list of inputs, with the aim being to see if there is a way to take all those inputs in order, using plus and multipule between then, evaluating left to right, to get the target number. We use a ...
Advent of Code 2024 Day 6 Python
Переглядів 7314 днів тому
Like, comment and subscribe for more! Chapters 0:00 Intro 0:11 Part 1 17:50 Part 2 35:04 Outro We solve the 2024 advent of code puzzle for day 6 using python. This puzzle involves a guard moving, hitting objects and trying to escape the map. This one is a little tricky and a bit longer as there are quite a few things to keep track off, but if you work through it in the way we do in the video, o...
Advent of Code 2024 Day 5 Python
Переглядів 10714 днів тому
Like, comment and subscribe for more! Chapters 0:00 Intro 0:08 Part 1 9:00 Part 2 15:15 Outro We solve the 2024 advent of code puzzle for day 5 using python. The puzzle is about applying a bunch of rules to an integer array and seeing which of those arrays pass all of the rules. Part 2 is a little trickier where we have to take the arrays that fail the rules and shuffle them around until they d...
Advent of Code 2024 Day 4 Python
Переглядів 9214 днів тому
Like, comment and subscribe for more! Chapters 0:00 Intro 0:11 Part 1 15:36 Part 2 20:32 Outro We solve the 2024 advent of code puzzle for day 4 using python. The puzzle is a wordsearch for XMAS inside a grid of letters that are X, M, A or S. We look at how to approach the problem first, not worrying about implementation at the start, just thinking about how we will solve it. We use abstraction...
Advent of Code 2024 Day 3 Python
Переглядів 7914 днів тому
Like, comment and subscribe for more! Chapters 0:00 Intro 1:01 Part 1 9:46 Part 2 14:48 Outro We solve the 2024 advent of code puzzle for day 3 using python. The puzzle itself isnt too complicated but the use of RegEx (Regular Expresion) can sometimes stump people. RegEx, in my opnion, is a tool to user rather than something to know every detail of, and with that in mind it can be a very useful...
Advent of Code 2024 Day 2 Python
Переглядів 2814 днів тому
Like, comment and subscribe for more! Chapters 00:00 Intro 00:38 Part 1 15:14 Part 2 23:06 Outro We solve the 2024 advent of code puzzle for day 2 using python. This is a slightly more challenging puzzle than day 1, but should be suitable for someone whoe is beggining to code as the concepts are not too advanced. We cover simple logic with the interactions of AND, OR and NOT (De Morgan's laws) ...
Advent of Code 2024 Day 1 Python
Переглядів 4721 день тому
Like, Comment and Subscribe for more! Chapters: 00:00 Intro 00:23 Part One 05:48 Part Two 08:40 Outro We solve the 2024 advent of code puzzle using python. This is a nice first puzzle for someone who is getting started with coding and covers the concepts of reading in from a file, splitting lines, sorting arrays and general thoughts when solving this problem. My aim it to make a video for each ...
Building My FIRST Weather App with React, Bootstrap & ChatGPT! | Watch Me Code Live & Learn
Переглядів 117Рік тому
In today's episode, we're going to venture into uncharted territory for me: building a simple weather app using React, Bootstrap, and even incorporating ChatGPT! WHAT TO EXPECT - A step-by-step guide on setting up a React project from scratch. - Using Bootstrap for UI and styling. - Real-time debugging and problem-solving (yes, I'm doing this for the first time too!). - Using ChatGPT to generat...
Build a Simple React App with React Routes: A Step-by-Step Guide to React Router DOM
Переглядів 32Рік тому
Learn how to create a small React application using routes from React Router DOM! This beginner-friendly tutorial walks you through the process of setting up two pages: a home page and a contacts page, complete with navigational buttons to switch between them. In this video, you'll learn: - How to set up React Router DOM in your project - Creating two distinct pages within your app - Utilizing ...
I liked the slices to create the sub_report, and the way you lined up your tests and then brought them up on the same line to do your validations. You did a good job explaining the guard clauses.
thanks a lot man, this video really helped me... just a suggestion: try to zoom in in your videos yk the code's really hard to see :)
You’re welcome, and thank you so much for commenting! Yeah good point, I should have done a test recording really - will get that sorted for the next video! Any topics that you would like to see? 😊
stuff related to 'animation' in react would be great @@SoftwareDevJames