{"id":15945631,"url":"https://github.com/qianbinbin/leetcode","last_synced_at":"2025-08-03T00:33:03.807Z","repository":{"id":132901510,"uuid":"118250482","full_name":"qianbinbin/leetcode","owner":"qianbinbin","description":"LeetCode Solutions in C, C++, Java and Python","archived":false,"fork":false,"pushed_at":"2024-01-16T16:01:36.000Z","size":2305,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-29T08:11:17.489Z","etag":null,"topics":["algorithm","c","cpp","java","leetcode","python"],"latest_commit_sha":null,"homepage":"","language":"Java","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/qianbinbin.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}},"created_at":"2018-01-20T14:34:02.000Z","updated_at":"2022-04-01T07:56:27.000Z","dependencies_parsed_at":"2024-01-16T19:02:21.609Z","dependency_job_id":null,"html_url":"https://github.com/qianbinbin/leetcode","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/qianbinbin%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qianbinbin%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qianbinbin%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qianbinbin%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qianbinbin","download_url":"https://codeload.github.com/qianbinbin/leetcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237073101,"owners_count":19251027,"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":["algorithm","c","cpp","java","leetcode","python"],"created_at":"2024-10-07T09:04:45.858Z","updated_at":"2025-02-04T06:31:18.991Z","avatar_url":"https://github.com/qianbinbin.png","language":"Java","readme":"# LeetCode Solutions in C, C++, Java and Python\n\n## C/C++\n\n[CLion](https://www.jetbrains.com/clion/) is recommended.\n\n**NOTE**: always reload CMake after adding new unit tests.\n\n### Requirements\n\n- A compiler with C99 and C++11 support.\n\n### Manually\n\n[CMake](https://cmake.org/) is required.\n\nGenerate a buildsystem:\n\n```sh\n$ cd /path/to/leetcode/c/  # /path/to/leetcode/cpp/\n$ mkdir build\n$ cd build\n$ cmake ..\n$ cd ..\n```\n\nCMake will automatically generate buildsystem files and download [googletest](https://github.com/google/googletest).\n\n**NOTE**: always reload CMake after adding new unit tests.\n\nTo build, specify unit test with `--target`:\n\n```sh\n$ cmake --build build --target two_sum_test -- -j4\n[  2%] Built target gtest\n[ 97%] Built target lc\n[ 97%] Built target gtest_main\nScanning dependencies of target two_sum_test\n[100%] Building CXX object tests/CMakeFiles/two_sum_test.dir/two_sum_test.cpp.o\n[100%] Linking CXX executable two_sum_test\n[100%] Built target two_sum_test\n```\n\nRun the test:\n\n```sh\n$ ./build/tests/two_sum_test\nRunning main() from /path/to/leetcode/c/build/googletest-src/googletest/src/gtest_main.cc\n[==========] Running 1 test from 1 test suite.\n[----------] Global test environment set-up.\n[----------] 1 test from two_sum_test\n[ RUN      ] two_sum_test.twoSum_1_1\n[       OK ] two_sum_test.twoSum_1_1 (0 ms)\n[----------] 1 test from two_sum_test (0 ms total)\n\n[----------] Global test environment tear-down\n[==========] 1 test from 1 test suite ran. (0 ms total)\n[  PASSED  ] 1 test\n```\n\n## Java\n\n[IntelliJ IDEA](https://www.jetbrains.com/idea/) is recommended.\n\n### Requirements\n\n- JDK 8 or newer.\n\n## Python\n\n[PyCharm](https://www.jetbrains.com/pycharm/) is recommended.\n\n### Requirements\n\n- Python3.\n\n### Manually\n\nRun a specific unit test:\n\n```shell\n$ cd /path/to/leetcode/python/\n$ python3 -m unittest tests/test_two_sum.py\n.\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nOK\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqianbinbin%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqianbinbin%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqianbinbin%2Fleetcode/lists"}