algorithm-labs

module
v0.0.0-...-1bbab87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: MIT

README

algorithm-labs

Most used: go and c++

Developed on Ubuntu 18.04 x64, build on MacOSx could fail.

Prerequisites

git submodule update --init
sudo apt install valgrind

Tips

C++ MemCheck
mkdir build && cd build
cmake -G Ninja ..
ninja
ninja ExperimentalMemCheck

Ninja中的N一定要大写, vscode -> cmake generator 配置时也要注意首字母大写

或者在vscode cmake outline中右键ExperimentalMemCheck执行。

Ninja 失败的话,可以用Makefile

mkdir build && cd build
cmake ..
make -j$(nproc)
make test
ctest -R ExperimentalMemCheck
Go Tests Coverage
go test -cover
# or
go tool cover -html=cover.out

Editor

VS Code with CMAKE

LICENSE

MIT License

Directories

Path Synopsis
books
go
basic/consistent_hash
Murmur3 32bit hash function based on http://en.wikipedia.org/wiki/MurmurHash
Murmur3 32bit hash function based on http://en.wikipedia.org/wiki/MurmurHash
leetcode
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL