# halfrost/leetcode-go

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/halfrost-leetcode-go).**

33,774 stars · 5,732 forks · Go · MIT

## Links

- GitHub: https://github.com/halfrost/LeetCode-Go
- Homepage: https://books.halfrost.com/leetcode
- awesome-repositories: https://awesome-repositories.com/repository/halfrost-leetcode-go.md

## Topics

`acm-icpc` `algo` `algorithm` `algorithm-competitions` `algorithms` `algorithms-and-data-structures` `dynamic-programming` `facebook` `go` `golang` `interview-questions` `leetcode` `leetcode-go` `leetcode-golang` `leetcode-solutions` `math` `pattern`

## Description

LeetCode-Go is a competitive programming repository and Go algorithm library. It provides a collection of optimized solutions for LeetCode challenges, focusing on time and space complexity.

The project serves as a reference for data structures and algorithms implemented in Go. It covers algorithm problem solving and performance optimization to meet strict memory and runtime constraints.

The repository includes capabilities for technical interview preparation and the application of Go language idioms to complex computing problems. Each solution is paired with a test suite to verify correctness against required cases and edge conditions.

## Tags

### Education & Learning Resources

- [Competitive Programming Solutions](https://awesome-repositories.com/f/education-learning-resources/competitive-programming-solutions.md) — A collection of optimized algorithm implementations for LeetCode challenges written in Go with full test coverage.
- [Technical Interview Preparation](https://awesome-repositories.com/f/education-learning-resources/professional-development-career/career-development/career-advancement-resources/technical-interview-preparation.md) — Serves as a study resource for common coding patterns and efficient implementations for technical interviews.

### Software Engineering & Architecture

- [Algorithmic Problem Solving](https://awesome-repositories.com/f/software-engineering-architecture/algorithmic-problem-solving.md) — Provides optimized implementations of algorithmic problems to meet strict competitive programming constraints. ([source](https://github.com/halfrost/leetcode-go#readme))
- [Algorithmic Performance Optimizations](https://awesome-repositories.com/f/software-engineering-architecture/development-methodologies/performance-optimization-principles/algorithmic-performance-optimizations.md) — Optimizes algorithm runtime and memory usage for computationally intensive programming tasks.

### Development Tools & Productivity

- [Competitive Programming Repositories](https://awesome-repositories.com/f/development-tools-productivity/competitive-programming-repositories.md) — Provides a structured collection of solved competitive programming problems focused on time and space complexity.
- [Table-Driven Tests](https://awesome-repositories.com/f/development-tools-productivity/debugging-profiling-testing/test-execution-management/test-suites/table-driven-tests.md) — Uses table-driven test suites to validate algorithm correctness across diverse input cases.

### Scientific & Mathematical Computing

- [Algorithm Libraries](https://awesome-repositories.com/f/scientific-mathematical-computing/algorithm-libraries.md) — Acts as a comprehensive Go library reference for implementing various data structures and algorithms.
- [Algorithms and Complexity](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/algorithms-and-complexity.md) — Implements solutions with a strict focus on time and space complexity for computational efficiency.

### Testing & Quality Assurance

- [Testing & Quality Assurance](https://awesome-repositories.com/f/testing-quality-assurance.md) — Includes comprehensive test suites to verify the correctness of algorithm implementations against edge cases. ([source](https://github.com/halfrost/leetcode-go#readme))

### Programming Languages & Runtimes

- [Go Idioms & Patterns](https://awesome-repositories.com/f/programming-languages-runtimes/go-idioms-patterns.md) — Demonstrates the application of Go idioms and standard library features in solving complex data structure problems.

### Part of an Awesome List

- [Learning and Reference](https://awesome-repositories.com/f/awesome-lists/learning/learning-and-reference.md) — Solutions to LeetCode problems in Go.
