Skip to content

Latest commit

Β 

History

History
71 lines (53 loc) Β· 2.65 KB

File metadata and controls

71 lines (53 loc) Β· 2.65 KB

GoCodeLab πŸš€

A collection of LeetCode problems solved in Go to improve data structures and algorithms skills.

πŸ“Œ Features

  • πŸ— Organized by problem type (arrays, linked lists, recursion, etc.).
  • βœ… Each solution includes a well-tested implementation.
  • πŸ§ͺ Unit tests for verification using Go’s testing package.
  • πŸ”„ Option to automatically sync solutions with GitHub.

πŸ“ Project Structure

  • solutions/ β†’ Contains implementations of algorithms categorized by topic.
    • arrays_and_strings/
      • two_pointers/
        • reverse_string.go
        • squares_of_a_sorted_array.go
      • sliding_window/
        • maximum_average_subarray_i.go
        • max_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.go
        • squares-of-a-sorted-array_test.go
      • sliding-window/
        • maximum-average-subarray-i_test.go
        • max-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.

πŸ† List of Problems

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! πŸš€


🀝 Contributing

Want to add more solutions? Feel free to submit a PR!

  1. Fork the repo.
  2. Solve a problem & add tests.
  3. Submit a Pull Request.

πŸ“œ License

This project is licensed under the MIT License.


Happy coding! 🎯πŸ”₯