given a sentence, tell how much it touches.
input : string
output : how much it touches
touching : a bilabial phoneme does, thinking about the lips
Does 'touch' mean something for a linguistic / grammatical standpoint? Or is this just a 'joke' problem of some sort?
The description is not sufficient to define the inputs and outputs of the wanted function.
I don't understand the meaning of "Does it touch?" (maybe because I am French) . Even by looking at the test suite , it doesn't help. Eric Could you explain more which task we have to achieve ? Thanks.
Sorry guys, I correct it.
All posted solutions as of today incorrectly detect "ph", such as in the word "phone" which should return 0. Add a test case for "ph", which would complicate matters?
Count the b's, m's and p's?
Yep Richard. It's a part of phonemes that are to be isolated while voice recognition.
I realize this isn't the most robust solution, but I'd like to see a more robust test suite first.
Back and Forth Rows
Finding Perfect Squares
Distance walked 1D
Sum of diagonal of a square matrix
Remove white space from the string
Math with Roman Numerals
hanoi towers II
The Tower of Hanoi
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office