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:

CreatedAug 16, 2023
Warriors Trained5
Total Skips0
Total Code Submissions37
Total Times Completed2
JavaScript Completions2
Total Stars0
% of votes with a positive feedback rating0% of 1
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes1
Total Rank Assessments1
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • SUPERADMINISTRATOR Avatar
Ad