{"id":18291792,"url":"https://github.com/cruxrebels/leetcode","last_synced_at":"2025-04-09T07:52:25.783Z","repository":{"id":122991105,"uuid":"168932585","full_name":"cruxrebels/LeetCode","owner":"cruxrebels","description":"Collection of Abhishek Agrawal's submissions to problems found on https://leetcode.com/.","archived":false,"fork":false,"pushed_at":"2019-02-03T19:35:29.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T02:16:43.770Z","etag":null,"topics":["algorithms","cpp","cpp11","cpp14","data-structures","leedcode-contest-solutions","leetcode","leetcode-contest","leetcode-solutions","weekly-contest"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cruxrebels.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-03T10:16:13.000Z","updated_at":"2019-02-03T19:35:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"a038ad78-bf39-48ae-bf39-14518191d539","html_url":"https://github.com/cruxrebels/LeetCode","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/cruxrebels%2FLeetCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxrebels%2FLeetCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxrebels%2FLeetCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxrebels%2FLeetCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cruxrebels","download_url":"https://codeload.github.com/cruxrebels/LeetCode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999850,"owners_count":21031044,"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":["algorithms","cpp","cpp11","cpp14","data-structures","leedcode-contest-solutions","leetcode","leetcode-contest","leetcode-solutions","weekly-contest"],"created_at":"2024-11-05T14:15:14.574Z","updated_at":"2025-04-09T07:52:25.761Z","avatar_url":"https://github.com/cruxrebels.png","language":"C++","readme":"# LeetCode\nThis repository is a collection of my gists (***working*** :white_check_mark: code snippets passing all test cases on the \n[LeetCode online judge](https://leetcode.com/)) solutions in the absolutely fantastic \nlanguage, C++.\n\nHence, the solutions won't directly execute on your local IDE or compiler, the main() would need to be written and the \nsolution's function would need to be invoked with appropriate inputs/test cases to run in standalone.\n\n## Notes:\n- Sometimes, multiple solutions/approaches have been provided with relevant comments in the solution file, \nthese are being continuously updated as and when I find a more optimized solution. Be wary of copying two solutions separated\nby comments simultaneously to run/submit on InterviewBit's online judge. Both shall work individually.\n- I've used C++11 ([list initialization](https://en.cppreference.com/w/cpp/language/list_initialization), \n[auto](https://en.cppreference.com/w/cpp/language/auto), \n[emplace_back](http://www.cplusplus.com/reference/vector/vector/emplace_back/), etc) features\nin each and every solution.\n- The solutions also succinctly encompasses years of C++ industry programming experience and care has been taken\nto optimize even at the slightest visible portions of the code.\n- *The code in this repo is completely original content and written by me.* If you like what you see, don't forget to show your liking by :star:ing this repo.\n\n## How to contribute?\n1. Fork the repository :fork_and_knife:\n2. Do the desired changes (add/delete/modify) :pencil2:\n3. Make a pull request :shipit:\n\n## When should you contribute?\n- If your solution's time complexity :alarm_clock: is better than the solution already present *or*,\n- If your solution's space complexity :floppy_disk: is better than the solution already present *or*,\n- If your solution is of the same time *and* space complexity but is more concise :page_with_curl:. \nIn this case, comment out the original solution \u0026 make a pull request with your solution *or*,\n- If your solution is of the same time *and* space complexity but is easier/more readable :page_facing_up: to understand *or*,\n- If you use the same solution as present in the main branch and have gone the extra mile to add short comments :memo: \nexplaining what's happening or what's the rationale at that particular code line, wherever necessary. :pray:\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruxrebels%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcruxrebels%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruxrebels%2Fleetcode/lists"}