Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/luaannguyen/go-leetcode

My Golang solutions for Leetcode ✏️
https://github.com/luaannguyen/go-leetcode

go golang leetcode leetcode-questions leetcode-solutions

Last synced: 1 day ago
JSON representation

My Golang solutions for Leetcode ✏️

Awesome Lists containing this project

README

        

# Daily LeetCode Solutions in Go ✏️

This repository contains my solutions to LeetCode problems in [Go](https://go.dev/).

Go

### Folder Structure 🗂️

- `easy/`: Easy level problems.
- `medium/`: Medium level problems.
- `hard/`: Hard level problems.

### Unit Testing 🧪

In your root direction, run:

```bash
go test ./...
```

If you only want to run tests in a specific problem `(e.g., ./easy/0001_two_sum)`, run:

```bash
go test ./easy/0001_two_sum
```

### Solutions (Continue Updating...)

| Leetcode ID | Title & Solution | Coefficient Of Difficulty | Remarks |
| :-----------------------------------------------------------------------------------: | :------------------------------------------- | :-----------------------: | :--------------------------------------: |
| [0001](https://leetcode.com/problems/two-sum/description/) | [Two Sum](/easy/) | Easy | _`HashMap`_ |
| [0392](https://leetcode.com/problems/is-subsequence/description/) | [Is Subsequence](/easy/) | Easy | _`Two Pointers`_ |
| [3042](https://leetcode.com/problems/count-prefix-and-suffix-pairs-i/description/) | [Count Prefix and Suffix Pairs I](/easy/) | Easy | _`Array`_ _`String`_ |
| [2185](https://leetcode.com/problems/counting-words-with-a-given-prefix/description/) | [Counting Words With a Given Prefix](/easy/) | Easy | _`Array`_ _`String`_ _`String Matching`_ |

### License 🪪

```txt
MIT License
Copyright (c) 2025 Luan Nguyen
```