Skip to content

davidpolme/GoCodeLab

Repository files navigation

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! 🎯🔥

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages