Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/not-rzwei/leetcode
Reviewing both Go and DSA at the same time
https://github.com/not-rzwei/leetcode
go leetcode
Last synced: 30 days ago
JSON representation
Reviewing both Go and DSA at the same time
- Host: GitHub
- URL: https://github.com/not-rzwei/leetcode
- Owner: not-rzwei
- Created: 2024-10-10T13:15:20.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-22T14:18:45.000Z (3 months ago)
- Last Synced: 2024-10-25T03:26:02.996Z (2 months ago)
- Topics: go, leetcode
- Language: Go
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go LeetCode Go
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!
## Requirements
- Visual Studio Code
- Go 1.21+
- LeetCode VSCode extension## Project Structure
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.
### Generate Solution File
To generate a solution with the same file name and structure, copy the configuration in the `.vscode/leetcode.json` to your user setting JSON.### Build Tags
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:
```bash
git update-index --assume-unchanged .vscode/settings.json
```Example tag to test bruteforce solutions
```json
{
"go.buildTags": "bruteforce",
...
}
```