{"id":19277624,"url":"https://github.com/shihabmridha/leetcode","last_synced_at":"2025-10-24T13:02:20.138Z","repository":{"id":131969376,"uuid":"525968225","full_name":"shihabmridha/leetcode","owner":"shihabmridha","description":"My leetcode solutions","archived":false,"fork":false,"pushed_at":"2024-05-24T17:22:18.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T15:48:49.949Z","etag":null,"topics":["go","golang","leetcode"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/shihabmridha.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":"2022-08-17T22:08:07.000Z","updated_at":"2024-05-24T17:22:21.000Z","dependencies_parsed_at":"2024-11-09T21:07:28.644Z","dependency_job_id":"e7164008-dc69-41a7-87ff-8674f387d648","html_url":"https://github.com/shihabmridha/leetcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shihabmridha%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shihabmridha%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shihabmridha%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shihabmridha%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shihabmridha","download_url":"https://codeload.github.com/shihabmridha/leetcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240381167,"owners_count":19792409,"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","golang","leetcode"],"created_at":"2024-11-09T21:06:30.188Z","updated_at":"2025-10-24T13:02:15.079Z","avatar_url":"https://github.com/shihabmridha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Template\n```\npackage main\n\nimport (\n\t\"bufio\"\n\t\"fmt\"\n\t\"os\"\n)\n\nvar reader *bufio.Reader = bufio.NewReader(os.Stdin)\nvar writer *bufio.Writer = bufio.NewWriter(os.Stdout)\n\nfunc printf(f string, a ...interface{}) { fmt.Fprintf(writer, f, a...) }\nfunc scanf(f string, a ...interface{})  { fmt.Fscanf(reader, f, a...) }\n\nfunc main() {\n\tdefer writer.Flush()\n}\n\n```\n\n### Usage\nI create a new directory with the problem number and problem name using the following format `{problem_number}_{problem_name}`. Create a file named `{problem_number}`. I create a `test` for each problem to test the code.\n\n\n### Helpers\n- Use `%v` to print array. Example: `fmt.Printf(\"%v\", projects)`\n- Create empty map `make(map[int]int)`, `map[rune]bool{}`\n- Create empty rune `make([]rune, 5) // with size`, `map[rune]bool{}`\n- Sort list/slice `slices.Sort(mySlice)`.\n- Sort with comparer `sort.Slice(mySlice, func(i, j int) bool { return mySlice[i] \u003e mySlice[j] })`\n- Deep compare array `reflect.DeepEqual([]int{0, 1, 1}, []int{0, 1, 1})`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshihabmridha%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshihabmridha%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshihabmridha%2Fleetcode/lists"}