about | help | code help+videos | done | prefs |
combine3plus3
Given two arrays nums1 and nums2 return a new array containing the first 3 elements of each array. The first 3 elements of nums1 should be in the first part of the new array and the first 3 elements of nums2 should be in the second part. Both nums1 and nums2 will have a length of 3 or greater. combine3plus3([1, 2, 3], [1, 1, 1]) → [1, 2, 3, 1, 1, 1] combine3plus3([1, 2, 3], [4, 5, 6, 7, 8]) → [1, 2, 3, 4, 5, 6] combine3plus3([5, 4, 3, 2, 1], [1, 2, 3, 4, 5]) → [5, 4, 3, 1, 2, 3] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy