{"id":19608977,"url":"https://github.com/davecom/c3priorityqueue","last_synced_at":"2026-03-02T09:01:08.358Z","repository":{"id":45513724,"uuid":"513348850","full_name":"davecom/C3PriorityQueue","owner":"davecom","description":"A simple binary heap based priority queue for C3.","archived":false,"fork":false,"pushed_at":"2022-07-16T06:53:18.000Z","size":189,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-21T09:03:20.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/davecom.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":"2022-07-13T02:01:00.000Z","updated_at":"2022-07-13T02:01:00.000Z","dependencies_parsed_at":"2022-07-21T05:03:14.676Z","dependency_job_id":null,"html_url":"https://github.com/davecom/C3PriorityQueue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davecom/C3PriorityQueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FC3PriorityQueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FC3PriorityQueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FC3PriorityQueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FC3PriorityQueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davecom","download_url":"https://codeload.github.com/davecom/C3PriorityQueue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FC3PriorityQueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29996257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":[],"created_at":"2024-11-11T10:18:50.128Z","updated_at":"2026-03-02T09:01:08.175Z","avatar_url":"https://github.com/davecom.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# C3PriorityQueue\n\nThis is a simple binary heap based priority queue for the [C3 language](https://github.com/c3lang/c3c). As such, it has O(lg n) pushes and pops. It depends on the intrinsic comparability of a type (`\u003c` or `\u003e`). You can configure the `max` property to make it a min-heap (false/default) or max-heap (true) based priority queue (do you want the smallest or largest value each time you pop?).\n\n## Example\n\n```c3\ndefine IntPriorityQueue = PriorityQueue\u003cint\u003e;\n\nfn void myThing() {\n    IntPriorityQueue pq;\n    pq.push(3);\n    pq.push(1);\n    pq.push(5);\n    pq.pop(); // expect to have 1 returned, or if you configured it as a max heap, then 5\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavecom%2Fc3priorityqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavecom%2Fc3priorityqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavecom%2Fc3priorityqueue/lists"}