It can be an interesting problem but as of now it can be passed by using max()
Note that this is a real solution of the problem since π(x) is monotonic.
Determine whether a vector is monotonically increasing
12196 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
796 Solvers
Least common multiple of many numbers
189 Solvers
find the maximum element of the matrix
354 Solvers
07 - Common functions and indexing 5
324 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!