{"id":21473857,"url":"https://github.com/bell-kevin/reverseorrotate","last_synced_at":"2026-07-02T22:02:16.099Z","repository":{"id":43423164,"uuid":"508375508","full_name":"bell-kevin/reverseOrRotate","owner":"bell-kevin","description":"The input is a string str of digits. Cut the string into chunks (a chunk here is a substring of the initial string) of size sz (ignore the last chunk if its size is less than sz).  If a chunk represents an integer such as the sum of the cubes of its digits is divisible by 2, reverse that chunk; otherwise rotate it to the left by one position. Put together these modified chunks and return the result as a string.  If  sz is \u003c= 0 or if str is empty return \"\" sz is greater (\u003e) than the length of str it is impossible to take a chunk of size sz hence return \"\". Examples: revrot(\"123456987654\", 6) --\u003e \"234561876549\" revrot(\"123456987653\", 6) --\u003e \"234561356789\" revrot(\"66443875\", 4) --\u003e \"44668753\" revrot(\"66443875\", 8) --\u003e \"64438756\" revrot(\"664438769\", 8) --\u003e \"67834466\" revrot(\"123456779\", 8) --\u003e \"23456771\" revrot(\"\", 8) --\u003e \"\" revrot(\"123456779\", 0) --\u003e \"\"  revrot(\"563000655734469485\", 4) --\u003e \"0365065073456944\" Example of a string rotated to the left by one position: s = \"123456\" gives \"234561\".","archived":false,"fork":false,"pushed_at":"2022-07-06T22:48:48.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T17:51:51.535Z","etag":null,"topics":["codewars-kata-solution"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bell-kevin.png","metadata":{},"created_at":"2022-06-28T16:28:40.000Z","updated_at":"2022-06-28T16:29:24.000Z","dependencies_parsed_at":"2022-09-09T23:23:05.798Z","dependency_job_id":null,"html_url":"https://github.com/bell-kevin/reverseOrRotate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bell-kevin/reverseOrRotate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FreverseOrRotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FreverseOrRotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FreverseOrRotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FreverseOrRotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bell-kevin","download_url":"https://codeload.github.com/bell-kevin/reverseOrRotate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FreverseOrRotate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35064251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["codewars-kata-solution"],"created_at":"2024-11-23T10:19:09.097Z","updated_at":"2026-07-02T22:02:15.684Z","avatar_url":"https://github.com/bell-kevin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":null,"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbell-kevin%2Freverseorrotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbell-kevin%2Freverseorrotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbell-kevin%2Freverseorrotate/lists"}