{"id":17822946,"url":"https://github.com/ranveeraggarwal/leetcode-cpp","last_synced_at":"2025-04-02T10:29:21.133Z","repository":{"id":72203484,"uuid":"262868051","full_name":"ranveeraggarwal/leetcode-cpp","owner":"ranveeraggarwal","description":"Leetcode Solutions in Modern-ish C++","archived":false,"fork":false,"pushed_at":"2020-05-16T19:02:21.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T01:34:45.435Z","etag":null,"topics":["algorithms","cpp","leetcode"],"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/ranveeraggarwal.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":"2020-05-10T20:17:18.000Z","updated_at":"2022-04-03T18:21:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2d893d5-c1a3-4b0f-b315-3f0d4f4bb4f6","html_url":"https://github.com/ranveeraggarwal/leetcode-cpp","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/ranveeraggarwal%2Fleetcode-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranveeraggarwal%2Fleetcode-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranveeraggarwal%2Fleetcode-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranveeraggarwal%2Fleetcode-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranveeraggarwal","download_url":"https://codeload.github.com/ranveeraggarwal/leetcode-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246796350,"owners_count":20835370,"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","leetcode"],"created_at":"2024-10-27T17:49:45.442Z","updated_at":"2025-04-02T10:29:21.112Z","avatar_url":"https://github.com/ranveeraggarwal.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"LeetCode Solutions in C++\n===\n\nThis is a repository of the LeetCode problems I have started solving in 2020. An attempt has been made to use C++ with modern features. Since this is an attempt at learning, some initial solutions might lack some awesome modern C++ idioms. They will improve them as I revisit some of those constucts/problems.\n\n## Algorithms Explained\nOnce in a while, when I find an awesome algorithm which is a little hard to understand, I try to explain it in a discussion post. Linking all those here (in a sorted order).\n\n* [169 | Explanation of Moore's Algorithm (Ft. Star Wars)](https://leetcode.com/problems/majority-element/discuss/616285/169-explanation-of-moores-algorithm-ft-star-wars)\n\n## Variable Naming\n\n* If `pSomething` is of type `int`, that means it's a moving index\n* Binary searches use `lo`, `hi` and `mid` for low, high and middle elements","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franveeraggarwal%2Fleetcode-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franveeraggarwal%2Fleetcode-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franveeraggarwal%2Fleetcode-cpp/lists"}