{"id":27443350,"url":"https://github.com/yashlad27/cpp_revision_repo","last_synced_at":"2025-07-13T08:05:21.676Z","repository":{"id":56802743,"uuid":"516782395","full_name":"yashlad27/Cpp_Revision_Repo","owner":"yashlad27","description":"C++ Revision For DSA","archived":false,"fork":false,"pushed_at":"2022-10-03T07:52:28.000Z","size":643,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T01:51:55.858Z","etag":null,"topics":["cpp","dsa","dsa-practice"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yashlad27.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}},"created_at":"2022-07-22T14:33:23.000Z","updated_at":"2022-10-03T13:51:40.000Z","dependencies_parsed_at":"2023-01-19T02:45:52.658Z","dependency_job_id":null,"html_url":"https://github.com/yashlad27/Cpp_Revision_Repo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yashlad27/Cpp_Revision_Repo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashlad27%2FCpp_Revision_Repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashlad27%2FCpp_Revision_Repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashlad27%2FCpp_Revision_Repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashlad27%2FCpp_Revision_Repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yashlad27","download_url":"https://codeload.github.com/yashlad27/Cpp_Revision_Repo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashlad27%2FCpp_Revision_Repo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265108514,"owners_count":23712466,"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":["cpp","dsa","dsa-practice"],"created_at":"2025-04-15T01:51:54.609Z","updated_at":"2025-07-13T08:05:21.652Z","avatar_url":"https://github.com/yashlad27.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cpp_Revision_Repo\n-----------------------------------------------------------------------------------------\nC++ Basic code syntax, stl library examples and dsa udemy course\n\n## Sequence Containers: \n1. Vectors: \n-\u003e random access - fast\n-\u003e MIDDLE insertion/ deletion - slow\n-\u003e insertion/ Deletion at the end - fast\n\n2. List: \n-\u003e Random access - slow\n-\u003e MIDDLE deletion/ insertion - fast\n-\u003e Deletion/ insertion at the end - fast\n\n## Associative Containers:\n-\u003e All operations fast except Random Access\n\n## Derived Containers:\n-\u003e depends on Data structure.\n\n----------------------------------------------------------------------------------------\n# Exception Handling:\n## Two Child Classes of Exception Lib:\n1. Logic_error:\n    a logic_error results from a fault in logic in our code. \n    {out of range error!} \n    or\n    {length_error: occurs in situations involving invalid lengths}\n\n2. runtime_error\n\n----------------------------------------------------------------------------------------\n\n# Pointers:\n1. Also called pointer variables.\n2. Holds a memory address.\n3. Refer to the data of interest indirectly.\n\n## Declaring a pointer:\n1. int* myIntPtr {not an integer, its a pointer to an integer}\n2. using ptr in the identifier is common practice.\n\n## declaring multiple variables per line:\nint *ptr1, *ptr2, *ptr3.\n\n## Three situations we use the asterisk (*):\n1. between a data type and identifier in pointer declaration.\n    eg: int* myNum;\n2. As the unary dereference Operator.\n    eg: *myNum = 400;\n3. used as the binary multiplication operator.\n    eg: int myNum = hisnum * hernum\n\n# Dynamic Memory:\n-\u003eis allocated at runtime instead of being set at compile time.\n-\u003euseful bcuz often we don't know how many of certain variables we will need.\n\n## c++ syntax for dynamic memory:\n-\u003ethe NEW keyword allows us to reserve memory on the free store, more commonly known as the HEAP.\n-\u003ethe DELETE keyword is for returning dynmically allocated memory when we're done using it.\n\n Const Correctness:\n---\n\u003e1. Const correctness refers to how to use the const keyword correctly in different circumstances.\n{involving pointers}\n---\n\u003e2. Four Scenarios:\n    - Non-Constant Pointer to non-constant data\n    - Constant pointer to non-constant data\n    - Non-Constant Pointer to constant data\n    - Constant Pointer to constant data\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashlad27%2Fcpp_revision_repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashlad27%2Fcpp_revision_repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashlad27%2Fcpp_revision_repo/lists"}