about | help | code help+videos | done | prefs |
lastHalf
Given a String, return a String of the last half so that "rabbit" returns "bit". For a string with a length less than 2, return the original string. lastHalf("rabbit") → "bit" lastHalf("abracadabra") → "adabra" lastHalf("rat") → "at" ...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