| about | help | code help+videos | done | prefs |
Given a String with an even number of characters, split it in half. Return the half that comes first lexicographically (alphabetically) unless the halves are the same in which case only return "X". splitOrderX("AB") → "A" splitOrderX("BA") → "A" splitOrderX("ABBA") → "AB" ...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: 200
Copyright Nick Parlante 2017 - privacy