Problem 45268. Restricted Multiplication v1
Solution Stats
Problem Comments
-
6 Comments
This problem's title is kind of misleading. Multiplication of matrices is not a multiplication of numbers (scalars) but a dot product of vectors. The test suite mixes the two operations, yet they are not the same. Moreover, we cannot use an if struct (because of the f-letter prohibition). I agree with 埃博拉酱; there is very likely no way to solve this problem without a hack (whatever function we use probably won't have the two necessary behaviors).
The tests involving single letters (a, e, f) have been updated to two or three letters to potentially allow for non-hacking solutions. Also, returned values are now tested against a tolerance.
Too many restrictions and all solutions submitted are the same.
As in life...
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
2484 Solvers
-
Calculate the Levenshtein distance between two strings
1460 Solvers
-
295 Solvers
-
184 Solvers
-
148 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!