diff --git a/.github/workflows/scripts/update_readme.py b/.github/workflows/scripts/update_readme.py index 5753c45..677adb6 100644 --- a/.github/workflows/scripts/update_readme.py +++ b/.github/workflows/scripts/update_readme.py @@ -80,7 +80,7 @@ def get_daily_challenges(self, month: str) -> int: :return: The number of daily challenges in the month """ try: - files = os.listdir(f"./Daily Challenges/2023/{month.capitalize()}") + files = os.listdir(f"./Daily Challenges/2023/{month.lower()}") return len(list(filter(lambda f: re.match(r"day_\d{1,2}.py", f), files))) except FileNotFoundError: return 0 diff --git a/Advent of Code/README.md b/Advent of Code/README.md deleted file mode 100644 index 8bd08fa..0000000 --- a/Advent of Code/README.md +++ /dev/null @@ -1,5 +0,0 @@ -## Advent of Code -https://adventofcode.com - - -> The files within this directory are generated by https://github.com/Starwort/aoc_helper \ No newline at end of file diff --git a/Algorithms/Python/conways_game_of_life.py b/Algorithms/Python/conways_game_of_life.py new file mode 100644 index 0000000..e69de29 diff --git a/Algorithms/Python/esoteric/fibonacci.py b/Algorithms/Python/esoteric/fibonacci.py new file mode 100644 index 0000000..5e3fed9 --- /dev/null +++ b/Algorithms/Python/esoteric/fibonacci.py @@ -0,0 +1,8 @@ +""" +Fibonacci +--------- +Utilises iterative method to generate n terms of fibonacci +""" + +# Output: [0, 1, 1, 2, 3, 5, 8, 13, 21] +(_:=(type)((_X_:=lambda:0).__name__, (tuple)(), {f"{(_C__:=lambda:(''.__getattribute__)('join')([(chr)((2)*(3^5&10*(7+3))**2-(3%4))]*2))()}init{_C__()}":(lambda __:(4)if __.C_(__.__setattr__(_C__(),list(map(int,str(4*3-2)[::-1]))),7)else(None)), "C_": (lambda A,_c,B_: (eval((y:=lambda _Y:''.join(_Y))(((x:=y(list(map(lambda n: chr((2*n)+12+96), range(1,5)))))[1:3],chr(105),x[::3]))).__call__)(A.A(B_)[1])),"A":(lambda o,cc:(eval)(f"([o.__.append((sum)(o.__[(abs)(8%6)-4:])){(y:=lambda _Y:''.join(_Y))([chr((3*(n**2))+99)for n in range(1,3)]+['r'])}(_)in range(cc)],o.__)".__str__(),(locals)()))})()); diff --git a/Algorithms/Python/esoteric/morse_code.py b/Algorithms/Python/esoteric/morse_code.py index 29d5bf7..026bfa1 100644 --- a/Algorithms/Python/esoteric/morse_code.py +++ b/Algorithms/Python/esoteric/morse_code.py @@ -1,5 +1,6 @@ """ -Morse code parser (esoteric) +Morse code parser +----------------- Utilises the morse code constant > ETIANMSURWDKGOHVF L PJBXCYZQ diff --git a/README.md b/README.md index dd9752b..fba0870 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,20 @@ ### Structure The structure of the repository: ``` -├── Daily Challenges +├── daily_challenges │ ├── 2023 -│ │ ├── June +│ │ ├── june │ │ │ ├── day_one.py -├── Other Problems -| ├── Python +├── other_problems +| ├── python │ | ├── expressive_words.py -├── Algorithms -| ├── Python +├── algorithms +| ├── python | | ├── wa_tor.py -├── Advent of Code +├── advent_of_code | ├── 2023 | | ├── day_one.py diff --git a/Advent of Code/2023/day_01.py b/advent_of_code/2023/day_01.py similarity index 100% rename from Advent of Code/2023/day_01.py rename to advent_of_code/2023/day_01.py diff --git a/Advent of Code/2023/day_02.py b/advent_of_code/2023/day_02.py similarity index 100% rename from Advent of Code/2023/day_02.py rename to advent_of_code/2023/day_02.py diff --git a/Advent of Code/2023/day_03.py b/advent_of_code/2023/day_03.py similarity index 100% rename from Advent of Code/2023/day_03.py rename to advent_of_code/2023/day_03.py diff --git a/Advent of Code/2023/day_04.py b/advent_of_code/2023/day_04.py similarity index 100% rename from Advent of Code/2023/day_04.py rename to advent_of_code/2023/day_04.py diff --git a/Advent of Code/2023/day_05.py b/advent_of_code/2023/day_05.py similarity index 100% rename from Advent of Code/2023/day_05.py rename to advent_of_code/2023/day_05.py diff --git a/Advent of Code/2023/day_06.py b/advent_of_code/2023/day_06.py similarity index 100% rename from Advent of Code/2023/day_06.py rename to advent_of_code/2023/day_06.py diff --git a/Advent of Code/2023/day_07.py b/advent_of_code/2023/day_07.py similarity index 100% rename from Advent of Code/2023/day_07.py rename to advent_of_code/2023/day_07.py diff --git a/Advent of Code/2023/day_08.py b/advent_of_code/2023/day_08.py similarity index 100% rename from Advent of Code/2023/day_08.py rename to advent_of_code/2023/day_08.py diff --git a/Advent of Code/2023/day_09.py b/advent_of_code/2023/day_09.py similarity index 100% rename from Advent of Code/2023/day_09.py rename to advent_of_code/2023/day_09.py diff --git a/Advent of Code/2023/day_11.py b/advent_of_code/2023/day_11.py similarity index 100% rename from Advent of Code/2023/day_11.py rename to advent_of_code/2023/day_11.py diff --git a/Daily Challenges/2023/July/day_22.py b/daily_challenges/2023/july/day_22.py similarity index 100% rename from Daily Challenges/2023/July/day_22.py rename to daily_challenges/2023/july/day_22.py diff --git a/Daily Challenges/2023/July/day_25.py b/daily_challenges/2023/july/day_25.py similarity index 100% rename from Daily Challenges/2023/July/day_25.py rename to daily_challenges/2023/july/day_25.py diff --git a/Daily Challenges/2023/June/day_11.py b/daily_challenges/2023/june/day_11.py similarity index 100% rename from Daily Challenges/2023/June/day_11.py rename to daily_challenges/2023/june/day_11.py diff --git a/Daily Challenges/2023/June/day_12.py b/daily_challenges/2023/june/day_12.py similarity index 100% rename from Daily Challenges/2023/June/day_12.py rename to daily_challenges/2023/june/day_12.py diff --git a/Daily Challenges/2023/June/day_13.py b/daily_challenges/2023/june/day_13.py similarity index 100% rename from Daily Challenges/2023/June/day_13.py rename to daily_challenges/2023/june/day_13.py diff --git a/Daily Challenges/2023/June/day_14.py b/daily_challenges/2023/june/day_14.py similarity index 100% rename from Daily Challenges/2023/June/day_14.py rename to daily_challenges/2023/june/day_14.py diff --git a/Daily Challenges/2023/June/day_15.py b/daily_challenges/2023/june/day_15.py similarity index 100% rename from Daily Challenges/2023/June/day_15.py rename to daily_challenges/2023/june/day_15.py diff --git a/Daily Challenges/2023/June/day_4.py b/daily_challenges/2023/june/day_4.py similarity index 100% rename from Daily Challenges/2023/June/day_4.py rename to daily_challenges/2023/june/day_4.py diff --git a/Daily Challenges/2023/June/day_5.py b/daily_challenges/2023/june/day_5.py similarity index 100% rename from Daily Challenges/2023/June/day_5.py rename to daily_challenges/2023/june/day_5.py diff --git a/Daily Challenges/2023/June/day_6.py b/daily_challenges/2023/june/day_6.py similarity index 100% rename from Daily Challenges/2023/June/day_6.py rename to daily_challenges/2023/june/day_6.py diff --git a/Daily Challenges/2023/June/day_7.py b/daily_challenges/2023/june/day_7.py similarity index 100% rename from Daily Challenges/2023/June/day_7.py rename to daily_challenges/2023/june/day_7.py diff --git a/Daily Challenges/2023/June/day_8.py b/daily_challenges/2023/june/day_8.py similarity index 100% rename from Daily Challenges/2023/June/day_8.py rename to daily_challenges/2023/june/day_8.py diff --git a/Daily Challenges/2023/June/day_8_binary_search.py b/daily_challenges/2023/june/day_8_binary_search.py similarity index 100% rename from Daily Challenges/2023/June/day_8_binary_search.py rename to daily_challenges/2023/june/day_8_binary_search.py diff --git a/Daily Challenges/2023/June/day_9.py b/daily_challenges/2023/june/day_9.py similarity index 100% rename from Daily Challenges/2023/June/day_9.py rename to daily_challenges/2023/june/day_9.py diff --git a/Other Problems/C-Sharp/AddBinary.cs b/other_problems/c_sharp/AddBinary.cs similarity index 100% rename from Other Problems/C-Sharp/AddBinary.cs rename to other_problems/c_sharp/AddBinary.cs diff --git a/Other Problems/C-Sharp/BaseballGame.cs b/other_problems/c_sharp/BaseballGame.cs similarity index 100% rename from Other Problems/C-Sharp/BaseballGame.cs rename to other_problems/c_sharp/BaseballGame.cs diff --git a/Other Problems/C-Sharp/BestTimeToBuyAndSellStock.cs b/other_problems/c_sharp/BestTimeToBuyAndSellStock.cs similarity index 100% rename from Other Problems/C-Sharp/BestTimeToBuyAndSellStock.cs rename to other_problems/c_sharp/BestTimeToBuyAndSellStock.cs diff --git a/Other Problems/C-Sharp/ContainsDuplicate.cs b/other_problems/c_sharp/ContainsDuplicate.cs similarity index 100% rename from Other Problems/C-Sharp/ContainsDuplicate.cs rename to other_problems/c_sharp/ContainsDuplicate.cs diff --git a/Other Problems/C-Sharp/MergeSortedArray.cs b/other_problems/c_sharp/MergeSortedArray.cs similarity index 100% rename from Other Problems/C-Sharp/MergeSortedArray.cs rename to other_problems/c_sharp/MergeSortedArray.cs diff --git a/Other Problems/C-Sharp/RemoveDuplicatesFromSortedArray.cs b/other_problems/c_sharp/RemoveDuplicatesFromSortedArray.cs similarity index 100% rename from Other Problems/C-Sharp/RemoveDuplicatesFromSortedArray.cs rename to other_problems/c_sharp/RemoveDuplicatesFromSortedArray.cs diff --git a/Other Problems/Python/add_two_numbers.py b/other_problems/python/add_two_numbers.py similarity index 100% rename from Other Problems/Python/add_two_numbers.py rename to other_problems/python/add_two_numbers.py diff --git a/Other Problems/Python/container_with_most_water.py b/other_problems/python/container_with_most_water.py similarity index 100% rename from Other Problems/Python/container_with_most_water.py rename to other_problems/python/container_with_most_water.py diff --git a/Other Problems/Python/design_a_number_container_system.py b/other_problems/python/design_a_number_container_system.py similarity index 100% rename from Other Problems/Python/design_a_number_container_system.py rename to other_problems/python/design_a_number_container_system.py diff --git a/Other Problems/Python/eliminate_maximum_number_of_monsters.py b/other_problems/python/eliminate_maximum_number_of_monsters.py similarity index 100% rename from Other Problems/Python/eliminate_maximum_number_of_monsters.py rename to other_problems/python/eliminate_maximum_number_of_monsters.py diff --git a/Other Problems/Python/minimum_remove_to_make_valid_parentheses.py b/other_problems/python/minimum_remove_to_make_valid_parentheses.py similarity index 100% rename from Other Problems/Python/minimum_remove_to_make_valid_parentheses.py rename to other_problems/python/minimum_remove_to_make_valid_parentheses.py diff --git a/Other Problems/Python/reorder_routes_to_make_all_paths_lead_to_the_city_zero.py b/other_problems/python/reorder_routes_to_make_all_paths_lead_to_the_city_zero.py similarity index 100% rename from Other Problems/Python/reorder_routes_to_make_all_paths_lead_to_the_city_zero.py rename to other_problems/python/reorder_routes_to_make_all_paths_lead_to_the_city_zero.py diff --git a/Other Problems/Python/string_to_integer_atoi.py b/other_problems/python/string_to_integer_atoi.py similarity index 100% rename from Other Problems/Python/string_to_integer_atoi.py rename to other_problems/python/string_to_integer_atoi.py