{"id":21355670,"url":"https://github.com/arrmansa/leetcode-nice-solutions","last_synced_at":"2025-03-16T05:25:14.837Z","repository":{"id":211648644,"uuid":"729654846","full_name":"arrmansa/leetcode-nice-solutions","owner":"arrmansa","description":"Some solutions for leetcode problems that I found fun - either the algorithm or using numpy bruteforce where it shouldn't be","archived":false,"fork":false,"pushed_at":"2024-10-12T08:09:53.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T18:09:33.476Z","etag":null,"topics":["leetcode","leetcode-python","leetcode-python3","leetcode-solutions","numpy","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arrmansa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09T23:02:44.000Z","updated_at":"2024-10-12T08:09:56.000Z","dependencies_parsed_at":"2024-01-25T22:27:54.647Z","dependency_job_id":"cbacb20d-bc04-4493-b936-411c98cef662","html_url":"https://github.com/arrmansa/leetcode-nice-solutions","commit_stats":null,"previous_names":["arrmansa/leetcode-nice-solutions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arrmansa%2Fleetcode-nice-solutions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arrmansa%2Fleetcode-nice-solutions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arrmansa%2Fleetcode-nice-solutions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arrmansa%2Fleetcode-nice-solutions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arrmansa","download_url":"https://codeload.github.com/arrmansa/leetcode-nice-solutions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243829792,"owners_count":20354725,"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":["leetcode","leetcode-python","leetcode-python3","leetcode-solutions","numpy","python","python3"],"created_at":"2024-11-22T04:19:15.823Z","updated_at":"2025-03-16T05:25:14.817Z","avatar_url":"https://github.com/arrmansa.png","language":"Python","readme":"# leetcode-nice-solutions\nSome solutions for leetcode problems that I found fun - either the algorithm or using numpy bruteforce where it shouldn't be\n\n# Some hacks\nopen = print\n\nclass str:\n    encode = lambda x: None\n\n\n__Serializer__._serialize = lambda _, x, __: None\n\n# Some fun parsing ideas\n```python\nnp.fromstring('[[1,10,4,2],[9,3,8,7],[15,16,17,12]]'[2:-2].replace('],[', ''), dtype=int, sep=',')\n```\n\n```python\n\nwith open('user.out', 'w') as f:\n    for args in zip(*([sys.stdin]*3)):\n        args = [int(val[:-1]) if val[-1] == '\\n' else int(val) for val in args]\n        f.write(str(getKth(*args)))\n        f.write('\\n')\n_exit(0)\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrmansa%2Fleetcode-nice-solutions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farrmansa%2Fleetcode-nice-solutions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrmansa%2Fleetcode-nice-solutions/lists"}