Problem 1036. Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following:
- 'H', meaning the home team won
- 'A', meaning the away team won
- 'D', meaning a draw, or tie game
So if
games = {'D','D','A','H','D','H'}
then
draws = 3
Solution Stats
Problem Comments
-
1 Comment
cuong
on 1 Dec 2024
ez
Solution Comments
Show commentsGroup

Strings I
- 30 Problems
- 102 Finishers
- Guess Cipher
- QWERTY Shift Encoder
- Calculate a modified Levenshtein distance between two strings
- Find matching string from a list of strings
- Find matching parenthesis
- Transposition as a CIPHER
- Decimal Comparison
- Return the first and last characters of a character array
- Find Rotated Substring
- Cell Counting: How Many Draws?
- Split a string into chunks of specified length
- Ordinal numbers
- Add more zeros
- Without the French accent please!
- Calculate a modified Levenshtein distance between two strings
- Calculate the Hamming distance between two strings
- Find mistyped words in text (mixed-up letters)
- QWERTY Shift Code Decoder
- QWERTY Shift Encoder
- Convert a structure into a string
- Return the first and last characters of a character array
- String substitution, sub problem to cryptoMath
- Number of 1s in a binary string
- Transposition as a CIPHER
- Use of regexp
- Pig Latin to English Translator
- English to Pig Latin Translator
- Formatting currency numbers
- Bang Bang in Bangalore
- Compress strings (not springs)
- letter yes yes & letter no no
- Convert String to Morse Code
- Decimal Comparison
- Find matching string from a list of strings
- Find Rotated Substring
- Reverse the Words (not letters) of a String
- Space Saver
- Find matching parenthesis
Problem Recent Solvers2202
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!