about | help | code help+videos | done | prefs |
apcsaArraysGetFirstThreeElements
Given an array of ints, return a new array of ints containing the first three elements from the input array, in the same order they were in the input. Precondition: the input array will have length >= 3. HINTDon't modify the parameter. apcsaArraysGetFirstThreeElements([3, 4, 9, 2]) → [3, 4, 9] apcsaArraysGetFirstThreeElements([0, 2, 3]) → [0, 2, 3] apcsaArraysGetFirstThreeElements([1, 2, 3, 4]) → [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
Difficulty: 130
Copyright Nick Parlante 2017 - privacy