about | help | code help+videos | done | prefs |
isAlmostEqual
Return true If and only if removing exactly 1 letter from s will make s equal to the target String. Hint: Can you use substring() to get the part of a string before a letter, and again to get the part of a string after a letter? isAlmostEqual("a", "") → true isAlmostEqual("a", "a") → false isAlmostEqual("ab", "a") → true ...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