about | help | code help+videos | done | prefs |
Write a method that returns an array in the reverse order of the input parameter integer array, except replace each occurrence of 'drop' with a zero. Look at the test data for examples. mar7_2016_APSLHL_reverseAndDelete([5, 3, 1, 7, 2, 4], 1) → [4, 2, 7, 0, 3, 5] mar7_2016_APSLHL_reverseAndDelete([], 5) → [] mar7_2016_APSLHL_reverseAndDelete([7], 7) → [0] ...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: 320
Copyright Nick Parlante 2017 - privacy