A collection of 100+ popular LeetCode problems solved in Go.

Overview

go-leetcode

A collection of 100+ popular LeetCode problems that I've solved in Go.

Each directory includes a:

  • Description with link to LeetCode problem
  • Solution to the problem
  • Unit test

Note that each of these problems have passed their respective test cases on LeetCode. The unit tests included with each solution in this repo are not comprehensive. They serve as a quick way to drop in a test case, hook up the debugger, and step through the algorithms to build understanding.

Also note that some of my personal comments are in the solutions. I'll be working to clean up anything that is not insightful.

Problems

There are a variety of popular LeetCode problems solved in this repository. However, most of the problems solved are from a highly recommended, curated list of problems called Top 75 LeetCode Problems.

The Top 75 LeetCode Problems list is comprehensive, covering a decent breadth and depth for each category. Working through that list will certainly help build the core concepts, techniques, and intuition needed to solve these types of problems.

I've included a checklist that you can use to work through the list below:

Array


Binary


Dynamic Programming


Graph


Interval


Linked List


Matrix


String


Tree


Heap

Owner
Austin Gebauer
Software Engineer @hashicorp. University of Washington Alumni.
Austin Gebauer
Fully customizable Leetcode submission downloader and manager.

Leetdoad Fully customizable Leetcode downloader and manager, which can download and organize your Leetcode submissions in different ways, e.g., by lan

Jiacheng Xu 2 Jun 22, 2022
100 days of Go learning

This repository is a journal of my path to learning GO. By the end of the 100 days, you should be able to follow along by day and learn Go as well.

Cobra 24 Feb 13, 2022
Source code of the 100 Go Mistakes book

100 Go Mistakes and How to Avoid Them Source code of 100 Go Mistakes and How to Avoid Them. Table of Contents Chapter 1 - Introduction Chapter 2 - Cod

Teiva Harsanyi 869 Jun 25, 2022
Solving structy.net data structures & algorithms programming problems in Go (with Tests)

structy.net Solving structy.net data structures & algorithms programming problems in Go (with Tests) I. Introduction 000. hey programmer 001. max-valu

Julian Popov 8 Mar 19, 2022
This project is a collection of many of the basic tools used on Unix-like operating systems implemented in Go as a learning exercize.

GoUnix This project is a collection of many of the basic tools used on Unix-like operating systems implemented in Go as a learning exercize. The idea

Tom Hanson 66 Jun 6, 2022
Collection of awesome interview references.

Awesome Interview Collection of awesome interview reference

Awesome Interview 1.7k Jun 23, 2022
Here is the collection of beginner friendly golang projects

Golang Mini Projects for Beginners Here is the collection of beginner friendly golang projects Mini Projects Book Store cli app to list, add, update,

Akilan 55 Jun 26, 2022
Collection of coding examples from "Go In Practice"

Go In Practice Go In Practice 1. Noteworthy aspects of Go 2. A solid foundation 1. Noteworthy aspects of Go Multiple returns Named return values Read

Ignacio Herrera 0 Jan 3, 2022
Golang - A collection of small Go programs used as learning exercises

This repo is a collection of small Go programs used as learning exercises Some o

null 0 Dec 31, 2021
Leetcode-in-go - A collection of solutions of leetcode problems solved in go!

Leetcode in Go A collection of solutions of leetcode problems solved in go! The problems are categorized based on their difficulty level. Easy Problem

null 0 Jan 8, 2022
Go-leetcode - Just solutions to Leetcode problems in Go

go-leetcode Just solutions to Leetcode problems in Go. Problems are organized in

Patrick T Coakley 0 Feb 4, 2022
Go Solution for LeetCode algorithms problems, 100% coverage.

LeetCode 的 Go 解答 进度 统计规则:1.免费题,2.算法题,3.能提交 Go 解答 Easy Medium Hard Total Accepted 265 456 187 908 Total 267 472 197 936 题解 题号 题目 通过率 难度 收藏 1250 * Check

aQua 3k Jun 23, 2022
Leetcode problems slutions

Leetcode problems slutions https://leetcode.com/problemset/all/ Solved problems 1. Two Sum https://leetcode.com/problems/two-sum/ Go Runtime: 4 ms, Me

Kálmán Hosszu 0 Jan 10, 2022
Access LeetCode problems via id, Golang implementation

LCid-Go Introduction This naive toy is based on bunnyxt/lcid, and implemented in Golang for practice. They are same in program logic and static files.

Yunchuan Zheng 0 Jan 15, 2022
My clean Go solution that's faster than 100%, takes up less memory than 100%.

Remove-element My very clean Go solution that's faster than 100% of all solutions on Leetcode. Leetcode Challenge: "Given an integer array nums and an

Daniel Pickens 0 Dec 24, 2021
Collection of Technical Interview Questions solved with Go

go-interview Collection of Technical Interview Questions solved with Go Algorithms A Star Datastructures Linked Lists Doubly Linked List Singly Linked

Raed Shomali 3.8k Jun 26, 2022
Go-interview-problems - Interview problems written in Go

go-interview-problems I created this repository in 2021 to learn Go and practice

Joe Stowers 2 Jan 25, 2022
fim is a collection of some popular frequent itemset mining algorithms implemented in Go.

fim fim is a collection of some popular frequent itemset mining algorithms implemented in Go. fim contains the implementations of the following algori

Paul Fedorow 8 Jun 15, 2022
Algorithms and Data Structures Solved in Golang

Algorithms and Data Structures Solved in Golang Hi! I'm Bruno Melo and this repository contains a lot challenges solved on many plataforms using go as

Bruno Melo 2 Feb 22, 2022
27 solved tasks on Golang (level 1)

golang-tasks-lvl1 Решение задач level# 1 (Golang) Запуск программы go run main.go Описание Проект состоит из файла main.go, директории с решением зада

Vitaly Gudza 0 Dec 3, 2021
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

Advent of Code 2021 Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved

Kemal Ogun Isik 0 Dec 2, 2021
Zach Howell 0 Jan 4, 2022
leetcode 徽标 badge

leetcode 徽标 leetcode 徽标 快速开始 使用 用户名 排名 通过题目数/总题目数 通过题目数/总题目数 比例 通过提交/总提交 通过提交/总提交 比例 排名记录图表 答题数量图表 自定义 致谢 快速开始 获取 {LeetCode_ID},根据 LeetCode 获取自己的{Leet

haozibi 13 Apr 17, 2022
LeetCode in Go with the code style strictly follows the Google Golang Style Guide

LeetCode in Go LeetCode Online Judge is a website containing many algorithm questions. Most of them are real interview questions of Google, Facebook,

null 0 Nov 13, 2021
My leetcode notes.

LeetCode Test Go Run test of all problems: go test ./problem/* Run test by the specific problem: go test ./problem/0070 Problems # Title Solution Diff

Salt Chang 1 Jan 10, 2022
Fully customizable Leetcode submission downloader and manager.

Leetdoad Fully customizable Leetcode downloader and manager, which can download and organize your Leetcode submissions in different ways, e.g., by lan

Jiacheng Xu 2 Jun 22, 2022
Leet code - Practice code of leetcode

leet_code Practice code of leetcode. Setting : "go.gopath": "/Users//go", path:

YoeaKai 0 Jan 6, 2022
Leetcode golang

1.1 数组/链表 前缀和数组 303 区域和检索 - 数组不可变 304 二维区域和检索 - 矩阵不可变 560 和为 K 的子数组 差分数组 370 区间加法 1109 航班预订统计

N∩S 1 Mar 10, 2022
Solution for Leetcode problem: 146. LRU Cache

Solution for Leetcode problem: 146. LRU Cache link My solution for the above lee

Dylan Smith 0 Jan 30, 2022