id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

gooD


Given an array of Strings, return the String that has the most digits followed immediately by the letter x. If two strings have the same number, return the one with the lowest index.


gooD(["1x", "123456789", "1y3534ssf", "4hsd73s"]) → "1x"
gooD(["1xs3x3412fgxx6", "1x+4x=5x", "x5x"]) → "1x+4x=5x"
gooD(["3x2y11x3gx5x", "", "232", "2x2xx3x3x"]) → "2x2xx3x3x"

...Save, Compile, Run (ctrl-enter)

public String gooD(String arr[]) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy