{"id":18365548,"url":"https://github.com/florianstancioiu/leetcode","last_synced_at":"2025-04-10T13:28:17.006Z","repository":{"id":150669409,"uuid":"239688614","full_name":"florianstancioiu/leetcode","owner":"florianstancioiu","description":"My PHP solutions for leetcode problems","archived":false,"fork":false,"pushed_at":"2021-05-17T12:18:17.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T20:16:51.565Z","etag":null,"topics":["algorithm-challenges","leetcode","php"],"latest_commit_sha":null,"homepage":"https://leetcode.com","language":"PHP","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/florianstancioiu.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":"2020-02-11T06:03:36.000Z","updated_at":"2021-05-17T12:18:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"70b9d5ea-412f-4481-8fa9-749de79abc91","html_url":"https://github.com/florianstancioiu/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/florianstancioiu%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianstancioiu%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianstancioiu%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianstancioiu%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florianstancioiu","download_url":"https://codeload.github.com/florianstancioiu/leetcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225668,"owners_count":21068078,"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":["algorithm-challenges","leetcode","php"],"created_at":"2024-11-05T23:13:56.384Z","updated_at":"2025-04-10T13:28:16.761Z","avatar_url":"https://github.com/florianstancioiu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Problems with valuable insights\n* 1389: `array_splice` let's you put elements in an array without removing the existing element at that location (the keys for every element after it are incremented by 1)\n* 1390: slight variation of the divisors algorithm shown on codility - do memorize\n* 169: variation of leader election (leader always exists) - do memorize\n* 1396: you use `number_format($nr, $precision)` to set the precision of a float number - yes, it's accurate\n* 1396: the problem can only be solved using `Iterator` objects\n* 202: `str_split` can be used to create an array of digits for numbers\n* 53: there are 2 versions of kadanes algorithm, one for max sum and one for max elements, this is for the sum, the one on codility is about the elements\n* 122: when you think of peaks and valleys try 2 pointers technique or greedy (learn 2 pointer and greedy...)\n* 49: you can't use the sum of the asci character codes to figure out the permutations of a string because the sums dont add up to distinct numbers\n\n# Problems that proved to be more than I can handle at the moment of taking\n* 5349\n* 1390\n* 74\n* 198 (I didn't submit anything because I didn't research DP well enough)\n* 1396* (unsolved)\n* 122 (solved from first try, but it took way to long to figure it out because I'm unfamiliar with this type of question)\n\n# To do\n* Check problems in which I didn't get a score over 70%, maybe I can learn new stuff\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianstancioiu%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorianstancioiu%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianstancioiu%2Fleetcode/lists"}