Skip to content

rsmith985/AoC_SingleLine_2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AoC_SingleLine_2023

Goal is to solve as much of Advent of Code 2023 using only a single semicolon anywhere in the code.

Update: As expected the problems got harder and I got busier. In the end I did everything from days 1-9, 11, and part 1 of Day 15. All of my 'normal' code solutions can be found here - https://github.com/rsmith985/AdventOfCode

Requirements:

  • Only 1 semicolon
  • Runs quickly/efficiently
  • Uses only methods built into .NET**

** To keep my sanity (see Day 5 part 2) I have allowed myself to 'add' a method to linq to make some things easier. I think they could be accomplished through other means, but as the days get harder it gets very difficult and I need a shortcut.

Days 1-7 have been solved without the method. After day 8 I'm allowing myself to use it. Added method:

    public static IEnumerable<T> Perform<T>(this IEnumerable<T> items, Action<T> action) 
    { 
        foreach(var item in items)  
            action(item);
        return items;
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages