about | help | code help+videos | done | prefs |
Given two strings, return the one that contains the most asterisks. If both strings contain the same number of asterisks, return an empty string, "". mostAsterisks("*", "**") → "**" mostAsterisks("*ab*", "a*b") → "*ab*" mostAsterisks("abc", "cba*") → "cba*" ...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