Problem 595. Reduce - Map-Reduce
Solution Stats
Problem Comments
-
3 Comments
@bmtran (Bryant Tran)
on 17 Apr 2012
could you separate your asserts into multiple cells so you can see which test case is failing?
@bmtran (Bryant Tran)
on 17 Apr 2012
also, how do you define the n-ary behavior since max only takes up to 2 non-empty arguments?
Muthu Annamalai
on 17 Apr 2012
I mean, n-ary operators are also supported, but I use max as a binary op.
Problem Recent Solvers16
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
14600 Solvers
-
Test if a Number is a Palindrome without using any String Operations
203 Solvers
-
Return the 'Size' of a String of Code
126 Solvers
-
591 Solvers
-
Getting the indices from a matrix
568 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!