about | help | code help+videos | done | prefs |
Given two strings, append them together (known as "concatenation") and return the result. However, if the strings are different lengths, omit chars from the longer string so it is the same length as the shorter string. So "Hello" and "Hi" yield "loHi". The strings may be any length. minCat("Hello", "Hi") → "loHi" minCat("Hello", "java") → "ellojava" minCat("java", "Hello") → "javaello" ...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: 181.0
Copyright Nick Parlante 2017 - privacy