Welcome to my personal project for my LeetCode solutions in Go! This repository serves as a playground for reviewing DSA and exploring Go features that I rarely use in my work. It's all about adventure and learning!
- Visual Studio Code
- Go 1.21+
- LeetCode VSCode extension
The project is organized in a way that allows for multiple solutions to the same problem using build tags. Each solution is encapsulated within its own file, and you can switch between them as needed.
To generate a solution with the same file name and structure, copy the configuration in the .vscode/leetcode.json
to your user setting JSON.
To test a different solution for a problem, you will need to change the buildTags
in the .vscode/settings.json
file. After updating the build tags, run the following command to ignore any changes to this file:
git update-index --assume-unchanged .vscode/settings.json
Example tag to test bruteforce solutions
{
"go.buildTags": "bruteforce",
...
}