Draft
Merge sorted arrays without built-in functions
112szepnapot
Description:
Hey Warriors!
Nowadays we have cool built-ins and it's easy to forget that in the past data transformations are made with raw code.
I challange You to write a function mergeArrays(arr1, arr2) which gets two, already sorted arrays and returns a single array containing both.
Rules:
- The return array should contain all values.
- NO BUILT-INS ALLOWED, DON'T EVEN TRY (enumerate, len, append, sorted, pop, insert, extend, sort, ...) are disabled
Input arrays contains integer values, and they are already sorted, take advantage of this!
Example:
print(mergeArrays([1, 3, 5], [2, 4, 6])
>> [1, 2, 3, 4, 5, 6]
If you liked the kata please rate and leave a feeback ;) Have fun!
Arrays
Logic
Algorithms
Similar Kata:
Stats:
Created | Sep 4, 2016 |
Warriors Trained | 319 |
Total Skips | 48 |
Total Code Submissions | 501 |
Total Times Completed | 112 |
Python Completions | 112 |
Total Stars | 5 |
% of votes with a positive feedback rating | 79% of 64 |
Total "Very Satisfied" Votes | 44 |
Total "Somewhat Satisfied" Votes | 13 |
Total "Not Satisfied" Votes | 7 |
Total Rank Assessments | 69 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |