Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

Awesome-Golang-LeetCode

LeetCode Question with Golang Solution

GO lastCommit

使用 Golang 刷 LeetCode 也有一段时间了,一开始的目的只是用刷题熟悉一下 Golang 的语法,也因此遇到许多坑(比如 Slice)。 所以在此记录一下自己刷过的题,我会尽量挑明代码中所用到的 Golang 的知识点。随着做过的题目数目增多,相信你也会被 Golang 的简洁与高效爽到。

目前主力更新 HotHits 里面 Medium 和 Hard 的题目,Easy 随缘更新,少数题因为开始是 Java 或者 Python 做过的,懒得改了,所以保留 Java 和 Python 的代码,有时间再进行重构。

本仓库的 Difficulty 目录按照难度分类,Question 目录按照序号分类,TopHits 目录按照 LeetCode 上的 Top Hits 栏目分类。

以下Title点击被传送到Question目录

Medium

# Title Tag
22 Generate Parentheses String, Backtracking
46 Permutations Backtracking
48 Rotate Image Array
49 Group Anagrams Hash Table, String
78 Subsets Array, Backtracking, Bit Manipulation
94 Binary Tree Inorder Traversal Hash Table, Stack, Tree
102 Binary Tree Level Order Traversal Tree, Breadth-first Search
215 Kth Largest Element in an Array Divide and Conquer, Heap
230 Kth Smallest Element in a BST Binary Search, Tree
238 Product of Array Except Self Array
328 Odd Even Linked List Linked List
347 Top K Frequent Elements Hash Table, Heap
378 Kth Smallest Element in a Sorted Matrix Binary Search, Heap
289 Game of Life Array
454 4Sum II Hash Table, Binary Search
65 Unique Paths Array, Dynamic Programming
384 Shuffle an Array -
341 Flatten Nested List Iterator Stack, Design
11 Container With Most Water Array, Two Pointers
208 Implement Trie (Prefix Tree) Design, Trie
105 Construct Binary Tree from Preorder and Inorder Traversal Array, Tree, Depth-first Search
279 Perfect Squares Math, Dynamic Programming, Breadth-first Search
103 Binary Tree Zigzag Level Order Traversal Stack, Tree, Breadth-first Search
200 Number of Islands Breadth-first Search,Depth-first Search,Union Find
207 Course Schedule Depth-first Search, Breadth-first Search, Graph, Topological Sort
210 Course Schedule II Depth-first Search, Breadth-first Search, Graph, Topological Sort
127 Word Ladder Breadth-first Search
236 Lowest Common Ancestor of a Binary Tree Tree

Hard

# Title Tag

Easy

# Title Tag
You can’t perform that action at this time.