about | help | code help+videos | done | prefs |
Loop over the given array of strings to build a result string like this: when a string appears the 2nd, 4th, 6th, etc. time in the array, append the string to the result. Return the empty string if no string appears a 2nd time. wordAppend(["a", "b", "a"]) → "a" wordAppend(["a", "b", "a", "c", "a", "d", "a"]) → "aa" wordAppend(["a", "", "a"]) → "a" ...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: 356
Copyright Nick Parlante 2017 - privacy