Skip to content

txfs19260817/LeetCode-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-Go-Notes

codecov Go Test

Index

Array

No. Title Solution Difficulty
0031 Next Permutation Go Medium
0048 Rotate Image Go Medium
0073 Set Matrix Zeroes Go Medium
0240 Search a 2D Matrix II Go Medium
0243 Shortest Word Distance Go Easy
0245 Shortest Word Distance III Go Medium
0645 Set Mismatch Go Easy
0667 Beautiful Arrangement II Go Medium
1460 Make Two Arrays Equal by Reversing Sub-arrays Go Easy
1539 Kth Missing Positive Number Go Easy

Backtracking

No. Title Solution Difficulty
0131 Palindrome Partitioning Go Medium
0403 Frog Jump Go Hard
0784 Letter Case Permutation Go Medium
1302 Deepest Leaves Sum Go Medium
1723 Find Minimum Time to Finish All Jobs Go Hard

Binary Search

No. Title Solution Difficulty
0034 Find First and Last Position of Element in Sorted Array Go Medium
0069 Sqrt(x) Go Easy
0074 Search a 2D Matrix Go Medium
0153 Find Minimum in Rotated Sorted Array Go Medium
0154 Find Minimum in Rotated Sorted Array II Go Hard
0367 Valid Perfect Square Go Easy
0410 Split Array Largest Sum Go Hard
0436 Find Right Interval Go Medium
1011 Capacity To Ship Packages Within D Days Go Medium
1482 Minimum Number of Days to Make m Bouquets Go Medium

Bit Manipulation

No. Title Solution Difficulty
0187 Repeated DNA Sequences Go Medium
0231 Power of Two Go Easy
0320 Generalized Abbreviation Go Medium
0326 Power of Three Go Easy
0342 Power of Four Go Easy
0461 Hamming Distance Go Easy
0477 Total Hamming Distance Go Medium
0810 Chalkboard XOR Game Go Hard
1310 XOR Queries of a Subarray Go Medium
1318 Minimum Flips to Make a OR b Equal to c Go Medium
1442 Count Triplets That Can Form Two Arrays of Equal XOR Go Medium
1486 XOR Operation in an Array Go Easy
1707 Maximum XOR With an Element From Array Go Hard
1720 Decode XORed Array Go Easy
1734 Decode XORed Permutation Go Medium
1738 Find Kth Largest XOR Coordinate Value Go Medium

Design

No. Title Solution Difficulty
0146 LRU Cache Go Medium
0225 Implement Stack using Queues Go Easy
0232 Implement Queue using Stacks Go Easy
0244 Shortest Word Distance II Go Medium
0460 LFU Cache Go Hard

Dynamic Programming

No. Title Solution Difficulty
0087 Scramble String Go Hard
0091 Decode Ways Go Medium
0097 Interleaving String Go Medium
0132 Palindrome Partitioning II Go Hard
0303 Range Sum Query - Immutable Go Easy
0304 Range Sum Query 2D - Immutable Go Medium
0329 Longest Increasing Path in a Matrix Go Hard
0368 Largest Divisible Subset Go Medium
0377 Combination Sum IV Go Medium
0474 Ones and Zeroes Go Medium
0494 Target Sum Go Medium
0583 Delete Operation for Two Strings Go Medium
0664 Strange Printer Go Hard
1035 Uncrossed Lines Go Medium
1139 Largest 1-Bordered Square Go Medium
1143 Longest Common Subsequence Go Medium
1269 Number of Ways to Stay in the Same Place After Some Steps Go Hard

Greedy

No. Title Solution Difficulty
0045 Jump Game II Go Medium
0135 Candy Go Hard
0435 Non-overlapping Intervals Go Medium
0455 Assign Cookies Go Easy
0936 Stamping The Sequence Go Hard

Hash Table

No. Title Solution Difficulty
0001 Two Sum Go Easy
0036 Valid Sudoku Go Medium
0049 Group Anagrams Go Medium
0205 Isomorphic Strings Go Easy
0217 Contains Duplicate Go Easy
0219 Contains Duplicate II Go Easy
0290 Word Pattern Go Easy
0325 Maximum Size Subarray Sum Equals k Go Medium
0525 Contiguous Array Go Medium
0554 Brick Wall Go Medium
0560 Subarray Sum Equals K Go Medium
0575 Distribute Candies Go Easy
0690 Employee Importance Go Easy
0692 Top K Frequent Words Go Medium
0953 Verifying an Alien Dictionary Go Easy
1074 Number of Submatrices That Sum to Target Go Hard
1640 Check Array Formation Through Concatenation Go Easy

Heap

No. Title Solution Difficulty
0215 Kth Largest Element in an Array Go Medium
0347 Top K Frequent Elements Go Medium
0703 Kth Largest Element in a Stream Go Easy

Linked List

No. Title Solution Difficulty
0002 Add Two Numbers Go Medium
0021 Merge Two Sorted Lists Go Easy
0082 Remove Duplicates from Sorted List II Go Medium
0083 Remove Duplicates from Sorted List Go Easy
0445 Add Two Numbers II Go Medium
1721 Swapping Nodes in a Linked List Go Medium

Math

No. Title Solution Difficulty
0007 Reverse Integer Go Easy
0029 Divide Two Integers Go Medium
0043 Multiply Strings Go Medium
0066 Plus One Go Easy
0067 Add Binary Go Easy
0204 Count Primes Go Easy
0263 Ugly Number Go Easy
0264 Ugly Number II Go Medium
0470 Implement Rand10() Using Rand7() Go Medium
0523 Continuous Subarray Sum Go Medium
0781 Rabbits in Forest Go Medium
1006 Clumsy Factorial Go Medium
1551 Minimum Operations to Make Array Equal Go Medium
1744 Can You Eat Your Favorite Candy on Your Favorite Day? Go Medium

Sort

No. Title Solution Difficulty
0220 Contains Duplicate III Go Medium

Stack

No. Title Solution Difficulty
0020 Valid Parentheses Go Easy
0084 Largest Rectangle in Histogram Go Hard
0150 Evaluate Reverse Polish Notation Go Medium
0155 Min Stack Go Easy
0456 132 Pattern Go Medium
1190 Reverse Substrings Between Each Pair of Parentheses Go Medium

String

No. Title Solution Difficulty
0012 Integer to Roman Go Medium
0013 Roman to Integer Go Easy
0032 Longest Valid Parentheses Go Hard
0038 Count and Say Go Easy
0415 Add Strings Go Easy
1332 Remove Palindromic Subsequences Go Easy
1614 Maximum Nesting Depth of the Parentheses Go Easy
1704 Determine if String Halves Are Alike Go Easy
1796 Second Largest Digit in a String Go Easy

Tree

No. Title Solution Difficulty
0116 Populating Next Right Pointers in Each Node Go Medium
0117 Populating Next Right Pointers in Each Node II Go Medium
0208 Implement Trie (Prefix Tree) Go Medium
0331 Verify Preorder Serialization of a Binary Tree Go Medium
0440 K-th Smallest in Lexicographical Order Go Hard
0450 Delete Node in a BST Go Medium
0623 Add One Row to Tree Go Medium
0654 Maximum Binary Tree Go Medium
0872 Leaf-Similar Trees Go Easy
0897 Increasing Order Search Tree Go Easy
0938 Range Sum of BST Go Easy
1469 Find All The Lonely Nodes Go Easy

Two Pointers

No. Title Solution Difficulty
0026 Remove Duplicates from Sorted Array Go Easy
0080 Remove Duplicates from Sorted Array II Go Medium
0088 Merge Sorted Array Go Easy
0202 Happy Number Go Easy
0633 Sum of Square Numbers Go Medium
0881 Boats to Save People Go Medium

Reference

  1. https://books.halfrost.com/leetcode