Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shinexia/algorithm-labs
algorithm labs
https://github.com/shinexia/algorithm-labs
algorithm algorithm-labs labs leetcode
Last synced: 9 days ago
JSON representation
algorithm labs
- Host: GitHub
- URL: https://github.com/shinexia/algorithm-labs
- Owner: shinexia
- License: mit
- Created: 2018-05-31T10:13:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T05:59:13.000Z (over 1 year ago)
- Last Synced: 2024-06-20T23:56:43.764Z (8 months ago)
- Topics: algorithm, algorithm-labs, labs, leetcode
- Language: C
- Homepage:
- Size: 712 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# algo-labs
Most used: go and c++
Developed on Ubuntu 18.04 x64, build on MacOSx could fail.
## Prerequisites
```bash
git submodule update --init
sudo apt install valgrind
```## Tips
### C++ MemCheck
```bash
mkdir build && cd build
cmake -G Ninja ..
ninja
ninja ExperimentalMemCheck
```Ninja 中的`N`一定要大写,vscode -> cmake generator 配置时也要注意首字母大写
或者在 vscode cmake outline 中右键`ExperimentalMemCheck`执行。
`Ninja` 失败的话,可以用 Makefile
```bash
mkdir build && cd build
cmake ..
make -j$(nproc)
make test
ctest -R ExperimentalMemCheck
```### Go Tests Coverage
```bash
go test -cover
# or
go tool cover -html=cover.out
```## Editor
VS Code with CMAKE
## LICENSE
[MIT License](LICENSE)