Draft
Swap Places By Group
Description:
Define a function that pairs 0 and 1 of the input array, 2 and 3, and so on, and then converts it to an integer and returns it
Examples:
SwapPlacesByGroup([1,2,3,4]) --> 2143n
SwapPlacesByGroup([0,5,2,3]) --> 5032n
Note: Returns undefiend if the length of the array is odd or the array is not a numeric array
Good luck!
Strings
Arrays
Similar Kata:
Stats:
Created | Aug 16, 2023 |
Warriors Trained | 5 |
Total Skips | 0 |
Total Code Submissions | 37 |
Total Times Completed | 2 |
JavaScript Completions | 2 |
Total Stars | 0 |
% of votes with a positive feedback rating | 0% of 1 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 1 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 7 kyu |