Advent of Code 2023 Day 1: Trebuchet?! in C# ✅✅

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 10

  • @KishanKumar-ih6vo
    @KishanKumar-ih6vo 11 місяців тому

    I am learning C# from your videos, thanks:)

    • @mzikmund
      @mzikmund  11 місяців тому

      That's nice to hear! Would you be interested in any specific topics? If yes, please post them here or to my github issues 👍 - github.com/MartinZikmund/live-coding-backlog/issues

  • @iZomb
    @iZomb 11 місяців тому

    Great video, just a small suggestion, can you perhaps consider making your VS window larger for the videos sake so we can follow more of the code easier? I really liked the LINQ approach.

    • @mzikmund
      @mzikmund  11 місяців тому +1

      Indeed, I keep struggling with this, as I usually use smaller fonts and then I forget to change when recording 👀

  • @agentstepheng289
    @agentstepheng289 Рік тому +3

    I really liked your solution, not sure how it can be translated to PowerShell, my weapon of choice. You managed to avoid the trap of overlapping words like oneight, which is to be translated as 18 not 1ight. I used REGEX and substituted the middle of hte words with numbers. e.g. one = o1e; three = t3e. Then I just found the first and last digit.

    • @systemloc
      @systemloc Рік тому

      I did the whole thing with regex too. ♥My second language was PERL where I did a lot of text record processing.... Love how they threw a curveball. I like the LINQ solution for the first part. I'm still learning LINQ.

  • @jaedong1957
    @jaedong1957 Рік тому

    awesome solution, gj!

  • @prismaldark3870
    @prismaldark3870 11 місяців тому

    So the * 10 makes the first and last digit go together? Without actually adding them. Why is that.

    • @sirenkatt
      @sirenkatt 11 місяців тому

      70 + 4 is the same as 74