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

 

tmhscs@gmail.com strings > string_letterCountDeluxe
prev  |  next  |  chance

string_letterCountDeluxe--Given two Strings "s1" and "s2", and an integer "n", return true if there are an n number of s2's in s1.


This problem was created by C. Ritchey, THS Class of 2022.


string_letterCountDeluxe("This is a test", "t", 3) → true
string_letterCountDeluxe("this is a test", "s", 3) → true
string_letterCountDeluxe("this is a test", "s", 4) → false

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

public boolean string_letterCountDeluxe(String s1, String s2, int n) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy