Problem 88. It dseon't mettar waht oedrr the lrettes in a wrod are.
Solution Stats
Problem Comments
-
6 Comments
Put more test cases in. Makes cheating too tempting.
the regexp solution is great
Adding a test case containing words with hyphens like 'hard-working' will make this problem more challenging.
Needs more test cases. Some would fail with input sIn = 'what is a chain' because of the 'ha' occurring in the middle of both in 'what' and 'chain'. Also needs test cases with hyphened words.
interesting question
I thought the empty set test was uncalled for. Might as well add in numeric arguments if you're wanting to make a case for checking if your inputs are valid.
Solution Comments
Show commentsProblem Recent Solvers2027
Suggested Problems
-
Determine whether a vector is monotonically increasing
22227 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1928 Solvers
-
given 3 sides, find area of this triangle
811 Solvers
-
Find last zero for each column
634 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2070 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!