| about | help | code help+videos | done | prefs |
Given a String with an even number of characters, split it in half and put it back together with each half in lexicographic (alphabetic) order unless the halves are the same in which case only return one half. halfOrder("AB") → "AB" halfOrder("BA") → "AB" halfOrder("ABBA") → "ABBA" ...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