A collection of LeetCode problems solved in Go to improve data structures and algorithms skills.
- π Organized by problem type (arrays, linked lists, recursion, etc.).
- β Each solution includes a well-tested implementation.
- π§ͺ Unit tests for verification using Goβs
testingpackage. - π Option to automatically sync solutions with GitHub.
solutions/β Contains implementations of algorithms categorized by topic.arrays_and_strings/two_pointers/reverse_string.gosquares_of_a_sorted_array.go
sliding_window/maximum_average_subarray_i.gomax_consecutive_ones_iii.go
prefix_sum/running-sum-of-1d-array.go
tests/β Unit tests for each solution, following the same structure.arrays-and-strings/two-pointers/reverse-string_test.gosquares-of-a-sorted-array_test.go
sliding-window/maximum-average-subarray-i_test.gomax-consecutive-ones-iii_test.go
prefix-sum/running-sum-of-1d-array_test.go
go.modβ Go module dependencies.go.sumβ Go package checksums..gitignoreβ Specifies files to ignore in version control.LICENSEβ Project license.
| Category | Problem Name | Solution File |
|---|---|---|
| Array & String | Reverse String | reverse_string.go |
| Array & String | Squares of a Sorted Array | squares_of_a_sorted_array.go |
| Array & String | Maximum Average Subarray I | maximum_average_subarray_i.go |
| Array & String | Max Consecutive Ones III | max_consecutive_ones_iii.go |
| Array & String | Running Sum of 1D Array | running-sum-of-1d-array.go |
More problems will be added regularly! π
Want to add more solutions? Feel free to submit a PR!
- Fork the repo.
- Solve a problem & add tests.
- Submit a Pull Request.
This project is licensed under the MIT License.
Happy coding! π―π₯