Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)