Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Write a function that takes three arguments, 2 arrays (a and b) and 1 integer (c) then returns one array (d) which is created by inserting all elements in b into a at indexes which are spaced by the integer value.
  2.  
  3. Consider all possible corner cases.
  4. e.g
  5. a = ["a", "b", "c", "d", "e", "f"]
  6. b = ["1", "2", "3"]
  7. c = 2
  8.  
  9. d = ["a", "b", "1", "c", "d", "2", "e", "f", "3"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement