Answers of leetcode problems, problems are solved by golang, python or both.
https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-leetcode
leetcode version
leetcode cache -d
leetcode list
go test -timeout 1s
go test -timeout 1s -run Method
Algorithms | Descriptioin | Codes | Gif |
---|---|---|---|
Bubble Sort | loop | Go | Gif |
Cocktail Shaker Sort | bidirectional bubble sort | Go | Gif |
Comb Sort | shrink factor,eliminate turtles | Go | Gif |
Counting Sort | Go | - | |
Gnome Sort | dubbed stupid sort | Go | Gif |
Heap Sort | tree sort | Go | Gif |
Insertion Sort | efficient for (quite) small data sets | Go | Gif |
Merge Sort | divide and conquer algorithm | Go | Gif |
Odd Even Sort | brick sort | Go | Gif |
Quick Sort | Go | Gif | |
Selection Sort | Go | Gif | |
Shell Sort | Go | Gif |