A repository to track my leetcode solutions in Go, as good practice to learn algorithms and data structures in Golang.
Run go get github.com/stretchr/testify/assert
to install testify package
Each directory should contain a test file named *_test.go
. To run the tests, navigate to the directory, and run the cmd go test
Feel free to contribute to additional tests to increase coverage.
Problem | Title | Difficulty | Liked |
---|---|---|---|
15 | 3Sum | Medium | ❤ |
45 | Jump Game 2 | Hard | ❤ |
49 | Group Anagrams (TODO: Test file) | Medium | |
55 | Jump Game | Medium | |
56 | Merge Intervals | Medium | |
62 | Unique Paths | Medium | |
77 | Combinations | Medium | |
78 | Subsets | Medium | |
79 | Word Search | Medium | ❤ |
94 | Binary Tree Inorder Traversal | Medium | |
100 | Same Tree | Easy | |
102 | Binary Tree Level Order Traversal | Medium | |
103 | Binary Tree Zigzag Level Order Traversal | Medium | |
107 | Binary Tree Level Order Traversal II | Easy | |
121 | Best Time to Buy and Sell Stock | Easy | |
122 | Best Time to Buy and Sell Stock II | Easy | |
128 | Longest Consecutive Sequence | Hard | ❤ |
130 | Surrounded Regions | Medium | ❤ |
144 | Binary Tree Preorder Traversal | Medium | |
152 | Maximum Product Subarray | Medium | |
198 | House Robber | Easy | |
200 | Number of Islands | Medium | ❤ |
207 | Course Schedule | Medium | |
212 | Word Search II | Hard | |
213 | House Robber II | Medium | |
226 | Invert Binary Tree | Easy | |
230 | Kth Smallest Element in a BST | Medium | |
295 | Find Median from Data Stream | Hard | ❤ |
300 | Longest Increasing Subsequence | Medium | |
322 | Coin Change | Medium | |
404 | Sum of Left Leaves | Easy | |
413 | Arithmetic Slices | Medium | |
450 | Delete Node in a BST | Medium | |
452 | Minimum Number of Arrows to Burst Balloons | Medium | ❤ |
456 | 132 Pattern | Medium | |
518 | Coin Change 2 | Medium | |
560 | Subarray Sum Equals K | Medium | |
617 | Merge Two Binary Trees | Easy | |
630 | Course Schedule III | Hard | ❤ |
654 | Maximum Binary Tree | Medium | |
695 | Max Area of Island | Medium | ❤ |
704 | Binary Search | Easy | |
739 | Daily Temperatures | Medium | ❤ |
740 | Delete and Earn | Medium | ❤ |
784 | Letter Case Permutation | Easy | |
795 | Number of Subarrays with Bounded Maximum | Medium | |
962 | Maximum Width Ramp | Medium | |
1094 | Car Pooling | Medium | ❤ |
1115 | Print FooBar Alternately | Medium | ❤ |
1116 | Print Zero Even Odd | Medium | |
1195 | Fizz Buzz Multithreaded | Medium | ❤ |
1254 | Number of Closed Islands | Medium | |
1323 | Maximum 69 Number | Easy | |
1438 | Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit | Medium | |
1496 | Path Crossing | Easy | |
1497 | Check If Array Pairs Are Divisible by k | Medium | ❤ |