• Stars
    star
    1,780
  • Rank 26,144 (Top 0.6 %)
  • Language
    Go
  • Created over 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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