about | help | code help+videos | done | prefs |
welcomeback_stacks_Given a Stack of Integers, move each integer onto a new stack, but copy evens over twice. welcomeback_stacks_doubleDaEvens([18, 9, 16, 12, 7, 17, 13, 4, 2, 10]) → [10, 10, 2, 2, 4, 4, 13, 17, 7, 12, 12, 16, 16, 9, 18, 18] welcomeback_stacks_doubleDaEvens([19, 1, 13, 3, 12, 4, 2, 10, 6, 8]) → [8, 8, 6, 6, 10, 10, 2, 2, 4, 4, 12, 12, 3, 13, 1, 19] welcomeback_stacks_doubleDaEvens([1, 2, 3, 4]) → [4, 4, 3, 2, 2, 1] ...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