Giter VIP home page Giter VIP logo

myadvent-of-code-2023's Introduction

This repository maintains all my attempts at solving the problems of this year's AoC.

This is my first time participating in any sort of "competitive programming" (though i'm not seeing this as competition). The purpose of this is to improve my coding skills, specially in Rust.

The structure of this repository is as follows:

- /DayN
    - /Python
    - /Rust

Where DayN exemplifies all subdirectories, one for each day.

As the structure suggests, my attempts will be in Python, with which i'm fairly used to but need more improvement, and Rust, the language i started learning not too long ago.

Happy Holidays!

myadvent-of-code-2023's People

Contributors

edppf avatar

Watchers

 avatar

myadvent-of-code-2023's Issues

Using Copilot to Make "Better" Code

I'll leave this issue here as a sort of reminder that on branch Copilot i am using AI to make my solutions more concise and readable.

I don't think I'll ever merge the branch on main, so no pull request will be made for this.

[Day 03 - Part One] Refactor repeated sections on both solutions

This solution is very complicated, unnecessarily. There are a lot of repeated code that can be refactored.
As an example, on solution.py, lines 55 - 58, i have

this_num = get_num(prev_line_index, previous_line)
if this_num != temp_num:
    sum_list.append(this_num)
    temp_num = this_num

which repeats on many if blocks. These if should be combined in a single if ... or ..., on both Python and Rust solutions.

  • Refactor code mentioned.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.