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

 

no29


Given a String of digits, return true if it contains no 2's or it contains no 9's. Challenge: This problem has 2 answers. One answer has two !s and one only has one !. Can you find them both?


no29("128") → true
no29("129") → false
no29("139") → true

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

public boolean no29(String digits) { }

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: 100

Copyright Nick Parlante 2017 - privacy