FBorowiec / leetcode

These are my C++ solutions to Leetcode problems. All problems have the same number as the ones on the https://leetcode.com/ website.

Home Page:https://github.com/FBorowiec/leetcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leetcode challenges

These are my C++ solutions to Leetcode problems. All problems have the same number as the ones on the https://leetcode.com/ website.

How to run the code locally with Bazel already installed on host

Bazel installation

Install Bazel

Once you have successfully installed Bazel you can run the code using:

bazel test //problems/test:unit_tests

Run the code inside a container

You can use my following Docker image to instantiate a container locally with Ubuntu and Bazel already installed:

docker run -it --rm framaxwlad/ubuntu_dev:latest

There you can simply clone the repository:

git clone https://github.com/FBorowiec/leetcode.git
cd leetcode/

And use the following commands to run the program:

bazel test //problems/test:unit_tests

About

These are my C++ solutions to Leetcode problems. All problems have the same number as the ones on the https://leetcode.com/ website.

https://github.com/FBorowiec/leetcode

License:GNU General Public License v3.0


Languages

Language:C++ 87.7%Language:Python 9.2%Language:Starlark 2.1%Language:Shell 1.1%