{"id":15047897,"url":"https://github.com/cruxrebels/interviewbit","last_synced_at":"2025-04-06T09:07:30.436Z","repository":{"id":38849324,"uuid":"55992649","full_name":"cruxrebels/InterviewBit","owner":"cruxrebels","description":"Collection of Abhishek Agrawal's gists solutions for problems on https://www.interviewbit.com","archived":false,"fork":false,"pushed_at":"2021-08-20T06:58:56.000Z","size":292,"stargazers_count":262,"open_issues_count":10,"forks_count":166,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-06T09:07:26.402Z","etag":null,"topics":["arrays","backtracking","binarysearch","bit-manipulation","cplusplus-11","cplusplus-14","dynamic-programming","greedy-algorithms","hashing","heaps","interviewbit","interviewbit-solutions","linked-list","maps","math","queue","stack","string-manipulation","trees","two-pointers"],"latest_commit_sha":null,"homepage":"","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}},"created_at":"2016-04-11T17:26:00.000Z","updated_at":"2025-03-23T14:37:04.000Z","dependencies_parsed_at":"2022-08-27T03:08:47.081Z","dependency_job_id":null,"html_url":"https://github.com/cruxrebels/InterviewBit","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%2FInterviewBit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxrebels%2FInterviewBit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxrebels%2FInterviewBit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxrebels%2FInterviewBit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cruxrebels","download_url":"https://codeload.github.com/cruxrebels/InterviewBit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457800,"owners_count":20941906,"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":["arrays","backtracking","binarysearch","bit-manipulation","cplusplus-11","cplusplus-14","dynamic-programming","greedy-algorithms","hashing","heaps","interviewbit","interviewbit-solutions","linked-list","maps","math","queue","stack","string-manipulation","trees","two-pointers"],"created_at":"2024-09-24T21:05:52.886Z","updated_at":"2025-04-06T09:07:30.393Z","avatar_url":"https://github.com/cruxrebels.png","language":"C++","readme":"# InterviewBit\nThis repository is a collection of my gists (***working*** :white_check_mark: code snippets passing all test cases on the \n[InterviewBit online judge](https://www.interviewbit.com/courses/programming/)) solutions in the absolutely fantastic \nlanguage, C++. \n\n***Edit:*** I've lately moved to Java hence trying to re-solve all the problems slowly and adding my Java solutions to this repo as well!\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 sure you've followed the existing coding standards and pattern of pasting the entire problem statement with a link to the problem on [InterviewBit](https://www.interviewbit.com). For reference, you can follow any existing file in this Repo. e.g. [AddOneToNumber.cpp](https://github.com/cruxrebels/InterviewBit/blob/master/Arrays/AddOneToNumber.cpp)\n4. Attach a screenshot from [InterviewBit](https://www.interviewbit.com) showing that your solution was ACCEPTED by the online judge. I've been getting a lot of pull requests which are not Accepted by the online judge.\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%2Finterviewbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcruxrebels%2Finterviewbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruxrebels%2Finterviewbit/lists"}