{"id":22366614,"url":"https://github.com/abdullahnettoor/leetcode","last_synced_at":"2025-03-26T15:51:20.196Z","repository":{"id":211299135,"uuid":"728641992","full_name":"abdullahnettoor/leetcode","owner":"abdullahnettoor","description":"A collection of solutions to LeetCode problems, primarily focusing on Go and SQL implementations. More language solutions are planned for the future.","archived":false,"fork":false,"pushed_at":"2024-11-19T08:55:15.000Z","size":210,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T17:05:38.910Z","etag":null,"topics":["go","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdullahnettoor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-07T11:32:11.000Z","updated_at":"2024-11-19T08:55:20.000Z","dependencies_parsed_at":"2023-12-07T17:42:22.108Z","dependency_job_id":"7b68ad2b-2b12-4b87-af03-aaf1a63a1718","html_url":"https://github.com/abdullahnettoor/leetcode","commit_stats":null,"previous_names":["abdullahnettoor/leetcode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahnettoor%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahnettoor%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahnettoor%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahnettoor%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahnettoor","download_url":"https://codeload.github.com/abdullahnettoor/leetcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689446,"owners_count":20656414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","sql"],"created_at":"2024-12-04T18:14:37.512Z","updated_at":"2025-03-26T15:51:20.170Z","avatar_url":"https://github.com/abdullahnettoor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetCode Solutions\n\nA collection of solutions to LeetCode problems, primarily focusing on Go and SQL implementations. More language solutions are planned for the future.\n\n## Project Structure\n\n```markdown\n├── README.md\n├── go\n│   ├── cmd\n│   ├── go.mod\n│   ├── sample workouts\n│   └── solutions\n│       └── # Contains all Go solutions\n└── sql\n```\n\n## Solutions Overview\n\nThe repository contains solutions to various LeetCode problems, including:\n\n### Array \u0026 String Problems\n- Two Sum (#1)\n- Longest Common Prefix (#14)\n- Valid Parentheses (#20)\n- Group Anagrams (#49)\n- Matrix Diagonal Sum (#1572)\n- Transpose Matrix (#867)\n- and more...\n### Binary Trees\n- Symmetric Tree (#101)\n- Maximum Depth of Binary Tree (#104)\n- Binary Tree Inorder Traversal (#94)\n- Invert Binary Tree (#226)\n- Kth Smallest Element in a BST (#230)\n- and more...\n\n### Linked Lists\n- Merge Two Sorted Lists (#21)\n- Reverse Linked List (#206)\n- and more...\n\n### Dynamic Programming\n- Fibonacci Number (#509)\n- Range Sum Query (#303)\n- and more...\n\n### Data Structures\n- Implement Trie (#208)\n- Valid Anagram (#242)\n- and more...\n\n## Implementation Details\n\nEach solution includes:\n- Problem description with constraints\n- Multiple solution approaches where applicable\n- Time and space complexity analysis\n- Example test cases\n\n## Code Example\n\nHere's a sample solution for the Two Sum problem:\n\n```go\nfunc twoSum(nums []int, target int) []int {\n    if len(nums) == 2 {\n        return []int{0,1}\n    }\n    h := make(map[int]int, len(nums))\n    for i, num := range nums {\n        t := target - num\n        if _, ok := h[t]; ok {\n            return []int{h[t], i}\n        }\n        h[num] = i\n    }\n    return []int{}\n}\n```\n\n## Running the Solutions\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/abdullahnettoor/leetcode\n```\n\n2. Navigate to the project directory:\n```bash\ncd leetcode/go\n```\n\n3. Run a specific solution:\n```bash\ngo run cmd/main.go\n```\n\n## Contributing\n\nContributions are welcome! Feel free to:\n- Add new solutions\n- Improve existing solutions\n- Add solutions in different programming languages\n- Improve documentation\n\n## License\n\nThis project is open source and available under the MIT License.\n\n## Contact\n\nCreated by [@abdullahnettoor](https://github.com/abdullahnettoor)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahnettoor%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahnettoor%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahnettoor%2Fleetcode/lists"}