{"id":24056378,"url":"https://github.com/arjun1237/arrays-left-rotation","last_synced_at":"2025-07-11T08:05:49.398Z","repository":{"id":110875021,"uuid":"204846180","full_name":"arjun1237/Arrays-Left-Rotation","owner":"arjun1237","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-28T04:15:49.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-09T05:00:48.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/arjun1237.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":"2019-08-28T04:11:37.000Z","updated_at":"2019-08-28T04:15:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d94a0b1-d82a-45cb-80dc-771d8013737c","html_url":"https://github.com/arjun1237/Arrays-Left-Rotation","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/arjun1237%2FArrays-Left-Rotation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjun1237%2FArrays-Left-Rotation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjun1237%2FArrays-Left-Rotation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjun1237%2FArrays-Left-Rotation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arjun1237","download_url":"https://codeload.github.com/arjun1237/Arrays-Left-Rotation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240849057,"owners_count":19867617,"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":[],"created_at":"2025-01-09T05:00:38.861Z","updated_at":"2025-02-26T12:13:46.935Z","avatar_url":"https://github.com/arjun1237.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arrays-Left-Rotation - HackerRank Source\n\n\nA left rotation operation on an array shifts each of the array's elements  unit to the left. For example, if  left rotations are performed on array , then the array would become .\n\nGiven an array  of  integers and a number, , perform  left rotations on the array. Return the updated array to be printed as a single line of space-separated integers.\n\nFunction Description\n\nComplete the function rotLeft in the editor below. It should return the resulting array of integers.\n\nrotLeft has the following parameter(s):\n\nAn array of integers .\nAn integer , the number of rotations.\nInput Format\n\nThe first line contains two space-separated integers  and , the size of  and the number of left rotations you must perform. \nThe second line contains  space-separated integers .\n\nConstraints\n\nOutput Format\n\nPrint a single line of  space-separated integers denoting the final state of the array after performing  left rotations.\n\nSample Input\n\n5 4\n\n1 2 3 4 5\n\nSample Output\n\n5 1 2 3 4\n\nExplanation\n\nWhen we perform  left rotations, the array undergoes the following sequence of changes:\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjun1237%2Farrays-left-rotation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjun1237%2Farrays-left-rotation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjun1237%2Farrays-left-rotation/lists"}