{"id":22880483,"url":"https://github.com/tusharnankani/adventofcode","last_synced_at":"2025-08-22T06:38:46.193Z","repository":{"id":112037974,"uuid":"433777769","full_name":"tusharnankani/AdventOfCode","owner":"tusharnankani","description":"My solutions for Advent of Code 2021 ","archived":false,"fork":false,"pushed_at":"2021-12-28T22:25:38.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T21:15:32.593Z","etag":null,"topics":["advent-of-code","advent-of-code-2021","adventofcode","cpp"],"latest_commit_sha":null,"homepage":"https://adventofcode.com/2021","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tusharnankani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-12-01T10:16:40.000Z","updated_at":"2021-12-28T22:25:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"af8cd173-0b31-400d-95d5-c21641b664b0","html_url":"https://github.com/tusharnankani/AdventOfCode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2FAdventOfCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2FAdventOfCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2FAdventOfCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2FAdventOfCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tusharnankani","download_url":"https://codeload.github.com/tusharnankani/AdventOfCode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246490461,"owners_count":20786008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","advent-of-code-2021","adventofcode","cpp"],"created_at":"2024-12-13T17:18:45.031Z","updated_at":"2025-03-31T15:35:56.423Z","avatar_url":"https://github.com/tusharnankani.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## AdventOfCode\n\n\u003cbr\u003e\n\nMy attempt at Advent of Code 2021\n\n\n\u003c!-- \u003cp align=\"center\"\u003e --\u003e\n\u003cimg src=\"image/README/1638354596212.png\" width=\"700\"\u003e\n\u003c!-- \u003c/p\u003e --\u003e\n\n\u003cbr\u003e\n\n#### What is Advent of Code?\n\nAdvent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in [any](https://github.com/search?q=advent+of+code) programming language you like. People use them as a [speed contest](https://adventofcode.com/leaderboard), [interview](https://y3l2n.com/2018/05/09/interview-prep-advent-of-code/) [prep](https://twitter.com/dznqbit/status/1037607793144938497), [company training](https://twitter.com/pgoultiaev/status/950805811583963137), [university](https://gitlab.com/imhoffman/fa19b4-mat3006/wikis/home) [coursework](https://www.gribblelab.org/scicomp2019/), [practice](https://twitter.com/mrdanielklein/status/936267621468483584) [problems](https://comp215.blogs.rice.edu/), or to [challenge each other](https://www.reddit.com/r/adventofcode/search?q=flair%3Aupping\u0026restrict_sr=on).\n\n~ via [About - Advent of Code 2021](https://adventofcode.com/2021/about)\n\n\u003cbr\u003e\n\n### Side Learnings\n\n\u003cbr\u003e\n\nWrote a bash script to create the folder structure like this.\n\n\u003cbr\u003e\n\n```\nday\n|__part1.cpp\n|__part2.cpp\n```\n\n\u003cbr\u003e\n\nFind the [bash script](/go.bash) here.\n\n\u003cbr\u003e\n\n```bash\nfor num in {1..25}\ndo\nif [ $num -lt 10 ]\nthen\n    mkdir 0$num\n    cd 0$num\n        \u003e 1.cpp\n        \u003e 2.cpp\nelse\n    mkdir $num\n    cd $num\n        \u003e 1.cpp\n        \u003e 2.cpp\nfi\ncd ..\ndone\n```\n\n\u003cbr\u003e\n\nor simply 🤭\n\n```bash\nfor num in {1..25}; do if [ $num -lt 10 ]; then mkdir 0$num; cd 0$num; \u003e 1.cpp; \u003e 2.cpp; else mkdir $num; cd $num; \u003e 1.cpp; \u003e 2.cpp; fi; cd ..; done\n```\n\u003cbr\u003e\n\n### Author\n\n[Tushar Nankani](https://tusharnankani.github.io/about/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharnankani%2Fadventofcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftusharnankani%2Fadventofcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharnankani%2Fadventofcode/lists"}