{"id":21956999,"url":"https://github.com/hotakus/clang-algorithms","last_synced_at":"2025-09-04T19:55:05.771Z","repository":{"id":166475058,"uuid":"641974839","full_name":"Hotakus/clang-algorithms","owner":"Hotakus","description":"C language library contains some useful algorithms adn data structures (such as hash table), and can help you develop. 包含一些有用的算法和数据结构（例如哈希表、链表），可以帮助您进行开发","archived":false,"fork":false,"pushed_at":"2023-07-19T11:56:20.000Z","size":257,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-04T19:54:42.402Z","etag":null,"topics":["algorithms","clang","cmake","embedded","hashtable","library"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hotakus.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":"2023-05-17T14:48:51.000Z","updated_at":"2023-07-08T03:07:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"0f105dba-f14e-4350-97d6-f9f7166c8f11","html_url":"https://github.com/Hotakus/clang-algorithms","commit_stats":null,"previous_names":["Hotakus/codewars-c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hotakus/clang-algorithms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hotakus%2Fclang-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hotakus%2Fclang-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hotakus%2Fclang-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hotakus%2Fclang-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hotakus","download_url":"https://codeload.github.com/Hotakus/clang-algorithms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hotakus%2Fclang-algorithms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273666011,"owners_count":25146276,"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-09-04T02:00:08.968Z","response_time":61,"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","clang","cmake","embedded","hashtable","library"],"created_at":"2024-11-29T08:42:11.115Z","updated_at":"2025-09-04T19:55:00.750Z","avatar_url":"https://github.com/Hotakus.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotakus' Clang Algorithms\n\ncontains some useful algorithms adn data structures, and can help you \ndevelop.\n\n---\n\n## Directory Structure\n\nClick links below to see details and API.\n\n- **[Algorithms](./src/algorithms) - ([Details](./src/README.md))**: Some algorithms may be useful.\n- **[Data Structures](./src/data_structures) - ([Details](./src/README.md))**: Some useful data structures. \n- **[Katas](./src/katas) - ([Details](./src/katas/README.md))**: Some katas or tricks may be useful , such as MSE, LCS, Big Num problems.\n- **[Questions](./src/questions) - ([Details](./src/questions/README.md))**: Some miscellaneous questions that may be unuseful in CodeWars .\n- **[CMakeLists.txt](CMakeLists.txt)**: Compiles project to static libraries, and you can run 'main' in bin to test functions.\n\n---\n\n## How to use directly this project?\n\nNice problem, and easy to use.  \n\nYou must fetch the repo to your project folder. and then, in `CmakeLists.txt` of your project (not this project),\nadd these codes below:\n```cmake\nadd_subdirectory(./clang-algorithms/)\nadd_executable(your_project_name main.c)\ntarget_link_libraries(your_project_name hca)\n```\nAnd then, test this project, in your `main.c`:\n```c\n#include \u003cstdio.h\u003e\nint main() {\n    printf(\"Welcome to use Hotakus' clang algorithms!!!\\n\")\n    hca_test();     // do test for some functions of hca.\n    hash_test();    // Hash table test\n    return 0;\n}\n```\n\n---\n\n## Only compile\n\n\n```bash\nmkdir build\ncd build\ncmake .. -DCMAKE_BUILD_TYPE=Release -DCW_KATA_ARM=0\nmake\n```\n\nand you can see the definition `-DCW_KATA_ARM=0`, this option is for ARM(or Embedded System)\nyou can open [CMakeLists.txt](CMakeLists.txt) and find \"CW_KATA_ARM\", change options in it.\nand run in \"build\" folder👇:\n```bash\ncmake .. -DCMAKE_BUILD_TYPE=Release -DCW_KATA_ARM=1\nmake\n```\nOK, all libs were compiled and move to \"lib\" folder in root path.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhotakus%2Fclang-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhotakus%2Fclang-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhotakus%2Fclang-algorithms/lists"}