{"id":26537412,"url":"https://github.com/mbeps/zigzag_conversion","last_synced_at":"2025-03-21T22:29:58.271Z","repository":{"id":265888427,"uuid":"655727600","full_name":"mbeps/Zigzag_Conversion","owner":"mbeps","description":"Zigzag Conversion","archived":false,"fork":false,"pushed_at":"2023-06-19T15:24:42.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T07:54:51.078Z","etag":null,"topics":["leetcode-python","python"],"latest_commit_sha":null,"homepage":"https://leetcode.com/problems/zigzag-conversion/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbeps.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-06-19T13:27:58.000Z","updated_at":"2023-06-19T15:25:07.000Z","dependencies_parsed_at":"2024-12-01T11:40:35.335Z","dependency_job_id":"956e7978-a1fc-4db9-b98d-4c92c39d23db","html_url":"https://github.com/mbeps/Zigzag_Conversion","commit_stats":null,"previous_names":["mbeps/zigzag_conversion"],"tags_count":2,"template":false,"template_full_name":"mbeps/Python_Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbeps%2FZigzag_Conversion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbeps%2FZigzag_Conversion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbeps%2FZigzag_Conversion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbeps%2FZigzag_Conversion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbeps","download_url":"https://codeload.github.com/mbeps/Zigzag_Conversion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244879468,"owners_count":20525422,"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-python","python"],"created_at":"2025-03-21T22:29:57.792Z","updated_at":"2025-03-21T22:29:58.258Z","avatar_url":"https://github.com/mbeps.png","language":"Python","readme":"# **6. Zigzag Conversion**\n\nThe string `\"PAYPALISHIRING\"` is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)\n\n```\nP   A   H   N\nA P L S I I G\nY   I   R\n```\n\nAnd then read line by line: `\"PAHNAPLSIIGYIR\"`\n\nWrite the code that will take a string and make this conversion given a number of rows:\n\n```\nstring convert(string s, int numRows);\n```\n\n\n**Example 1:**\n```\nInput: s = \"PAYPALISHIRING\", numRows = 3\nOutput: \"PAHNAPLSIIGYIR\"\n```\n**Example 2:**\n```\nInput: s = \"PAYPALISHIRING\", numRows = 4\nOutput: \"PINALSIGYAHRPI\"\nExplanation:\nP     I    N\nA   L S  I G\nY A   H R\nP     I\n```\n\n**Example 3:**\n```\nInput: s = \"A\", numRows = 1\nOutput: \"A\"\n```\n\n**Constraints:**\n- `1 \u003c= s.length \u003c= 1000`\n- `s` consists of English letters (lower-case and upper-case), `','` and `'.'`.\n- `1 \u003c= numRows \u003c= 1000`\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbeps%2Fzigzag_conversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbeps%2Fzigzag_conversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbeps%2Fzigzag_conversion/lists"}