Given a string input, output true if there are 2 b's in it, false if otherwise
Examples:
'Macbeth' -> false 'Publius Cornelius Dolabella' -> true
Note: sometimes it's the littlest things that matter....
Solution Stats
Problem Comments
8 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers408
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15777 Solvers
-
Create a vector whose elements depend on the previous element
782 Solvers
-
Generate N equally spaced intervals between -L and L
942 Solvers
-
Relative ratio of "1" in binary number
1592 Solvers
-
6003 Solvers
More from this Author39
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
this is a great problem iff delivered as audio but not as video...
Liked it, emphasizes the old advice - examine the exam first, answer the exam later ...
But B is not the same as b!
The default call routine has numbers "2" but the check routine expects "two" to be the function call name.
I'm just curious, cause the description doesn't specify it clearly (and there is no test for this): what the output should be when input has more than two b's?
filename cannot start with a number.
Tricky problem - fools the solver with the function name...
FUNCTION NAME STARTS WITH A NUMBER! BLAH! CHANGE 2--> two