Problem 325. 2 b | ~ 2 b
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
Show
5 older comments
Anupam Agarwal
on 17 Oct 2014
filename cannot start with a number.
Varoujan
on 5 Jul 2015
Tricky problem - fools the solver with the function name...
Michael Jarboe
on 6 Sep 2018
FUNCTION NAME STARTS WITH A NUMBER! BLAH! CHANGE 2--> two
Solution Comments
Show commentsProblem Recent Solvers400
Suggested Problems
-
Check to see if a Sudoku Puzzle is Solved
325 Solvers
-
Given a matrix, return the last eigen value
225 Solvers
-
726 Solvers
-
Side of an equilateral triangle
6355 Solvers
-
Element by element multiplication of two vectors
377 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!