{"id":26686170,"url":"https://github.com/saifiimuhammad/data-structures-algorithms","last_synced_at":"2025-10-06T16:46:36.258Z","repository":{"id":257914495,"uuid":"863091575","full_name":"saifiimuhammad/Data-Structures-Algorithms","owner":"saifiimuhammad","description":"This repository contains implementations of common algorithms and Leetcode problems in C++.","archived":false,"fork":false,"pushed_at":"2024-10-18T10:40:50.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T11:17:02.071Z","etag":null,"topics":["algorithms","cpp","data-structures","leetcode"],"latest_commit_sha":null,"homepage":"","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/saifiimuhammad.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-25T17:41:50.000Z","updated_at":"2024-12-20T09:20:44.000Z","dependencies_parsed_at":"2024-10-17T00:53:31.138Z","dependency_job_id":null,"html_url":"https://github.com/saifiimuhammad/Data-Structures-Algorithms","commit_stats":null,"previous_names":["saifiimuhammad/data-structures-algorithms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saifiimuhammad/Data-Structures-Algorithms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FData-Structures-Algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FData-Structures-Algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FData-Structures-Algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FData-Structures-Algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saifiimuhammad","download_url":"https://codeload.github.com/saifiimuhammad/Data-Structures-Algorithms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FData-Structures-Algorithms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278646753,"owners_count":26021511,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","data-structures","leetcode"],"created_at":"2025-03-26T11:17:06.376Z","updated_at":"2025-10-06T16:46:36.223Z","avatar_url":"https://github.com/saifiimuhammad.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Structures and Algorithms\n\nThis repository contains implementations of common algorithms in **C++**. Below is a brief overview of each algorithm, its time complexity, and typical usage scenarios.\n\n## Sorting Algorithms\n\n1. **Bubble Sort**\n   - **Time Complexity:** O(n²)\n   - **Usage:** Simple but inefficient, used for small datasets or educational purposes.\n\n2. **Selection Sort**\n   - **Time Complexity:** O(n²)\n   - **Usage:** Better than bubble sort for small datasets, useful for learning purposes.\n\n3. **Quick Sort**\n   - **Time Complexity:** O(n log n) on average\n   - **Usage:** Efficient for large datasets; performance may degrade with bad pivot choices.\n\n4. **Merge Sort**\n   - **Time Complexity:** O(n log n)\n   - **Usage:** Stable and consistent, ideal for large datasets where stability is required.\n\n5. **Insertion Sort**\n   - **Time Complexity:** O(n²)\n   - **Usage:** Efficient for small datasets and nearly sorted data.\n\n---\n\n## Problem-Solving\n\n1. **Two Sum Problem**\n   - **Description:** Find two numbers that add up to a target value.\n   - **Time Complexity:** O(n)\n   - **Usage:** Common problem in coding interviews.\n\n2. **Counter Problem**\n   - **Description:** Count occurrences of elements in an array.\n   - **Time Complexity:** O(n)\n   - **Usage:** Useful for frequency counting.\n\n3. **Remove Duplicates**\n   - **Description:** Remove duplicates from a sorted array.\n   - **Time Complexity:** O(n)\n   - **Usage:** Simplifies an array by removing duplicate values.\n\n---\n\n## Credits\n\nDeveloped by [Muhammad Saif](https://github.com/saifiimuhammad).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaifiimuhammad%2Fdata-structures-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaifiimuhammad%2Fdata-structures-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaifiimuhammad%2Fdata-structures-algorithms/lists"}