Skip to content

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

Notifications You must be signed in to change notification settings

tianya1993/go-leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.7%
  • Makefile 0.3%