This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Identify 1,4,7 and 8 | |
| 6 must be 6 letters long and not contain all letters of 1 | |
| 9 must be 6 letters long and contain all letters of 4 | |
| 3 must be 5 letters long and contain all letters of 1 | |
| 0 must be 6 letters long and contain all letters of 1 and not be == 9 | |
| 5 must be 5 letters long and overlap with 6 by 5 letters | |
| 2 must be 5 letters long and overlap with 6 by 4 letters and not be == 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| We start by identifying the 4 numbers (1,4,7,8) | |
| 1 => ab | |
| 4 => abef | |
| 7 => abd | |
| 8 => abcdefg | |
| Know that the top segment MUST be the letter that is in 7 but not 1 | |
| Observe that the 2 right side segments WILL be the 2 letters that are in 1 and 7 | |
| Observe that top left segment WILL be one of 2 letters that are in 4 but not the same as the right segments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original step: 66 Current step: 72 | |
| 6999137695 | |
| 5338246616 | |
| 4839615236 | |
| 3589788191 | |
| 3433455521 | |
| 4886722699 | |
| 1914119177 | |
| 2134853355 | |
| 8116194536 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Loop start: 68 Loop size: 6 | |
| 7253680879 | |
| 1579429636 | |
| 1181201960 | |
| 8986037708 | |
| 8814892217 | |
| 9135316937 | |
| 2272353340 | |
| 9965415349 | |
| 4742529622 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Note this requires DMSLib and Parser.cs from Pivet */ | |
| /* Also requires a DMS export of PSPCMPROG and PSPCMNAME */ | |
| using PeopleCodeLib.Decoder; | |
| using System.Diagnostics; | |
| var dmsFile = DMSLib.DMSReader.Read(@"C:\Users\tslat\Downloads\TIM_PT859.DAT"); | |
| Console.WriteLine("Read file. Tables: " + dmsFile.Tables.Count); | |
| var progTable = dmsFile.Tables.Where(t => t.Name == "PSPCMPROG").First(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Creation of the initial image editor on startup */ | |
| 34.788 PixelPaint(45:45): Image 0x00000018a567b6d0 has Undo Stack 0x00000018a567ba78 | |
| 34.792 PixelPaint(45:45): Pushed action to 0x00000018a567ba78 | |
| 34.800 PixelPaint(45:45): Switching tab to editor: ImageEditor(0x00000018a567b6d0) | |
| 45.390 PixelPaint(45:45): Completed action for editor 0x00000018a567b6d0, undo stack: 0x00000018a567ba78 | |
| /* Drawing and undoing brush on initial image editor */ | |
| 45.394 PixelPaint(45:45): Pushed action to 0x00000018a567ba78 | |
| 46.800 PixelPaint(45:45): Undo action for 0x00000018a567ba78 | |
| 46.800 PixelPaint(45:45): Undo action for 0x00000018a567ba78 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| namespace CrateMover | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| // Create a list of containers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create a list to store the containers | |
| List<List<string>> containers = new List<List<string>>(); | |
| // Split the input string into lines | |
| string[] lines = input.Split('\n'); | |
| // Loop through each column in the input | |
| for (int col = 0; col < 35; col += 4) | |
| { | |
| // Create a list to store the entries in the current column |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* PROMPT: | |
| Help me parse this terminal output using C#. The output represents a series of `cd` and `ls` commands, these commands start with '$'. if a `cd` command is followed by `..` this means to move up a level. otherwise it means to navigate to the folder whose name is given. | |
| The remaining output is either a file, which is shown by file size and followed by file name, or it is a directory which starts with `dir` and is followed by the directory name. | |
| Here is an example input: */ | |
| using System; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace AdventOfCode | |
| { | |
| /* ChatGPT created class, Renamed by human to not conflict with System.IO.File */ | |
| public class AoCFile |