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 the peak 3n+1 sequence value
1774 Solvers
-
swap sign sum & multiply castles
37 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
562 Solvers
-
Getting the indices from a matrix
568 Solvers
-
Determine if input is a perfect number
188 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!