about | help | code help+videos | done | prefs |
Given two strings, interleave their characters into an alternating string. For example, interleaving the strings "abc" and "xyz" would return "axbycz". Any extra elements are added to the end (i.e., interleaving "abcde" and "xyz" would give "axbyczde". interleave("bgcugs", "i hnu") → "big chungus" interleave("ac", "ps") → "apcs" interleave("123456789", "abc") → "1a2b3c456789" ...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