about | help | code help+videos | done | prefs |
removeLast0s
Returns a new ArrayList with the ending zeros of the ArrayList argument removed. removeLast0s([1, 3, 0, 5, 7, 0, 0]) → [1, 3, 0, 5, 7] removeLast0s([0, 1, 3, 99, 0, 0, 0, 0]) → [0, 1, 3, 99] removeLast0s([1, 3, 3, 6, 99, 99]) → [1, 3, 3, 6, 99, 99] ...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