Cody

Problem 44436. Find the largest number

Given a vector v with 4 elements, find the largest number x.

Example:

Input:  v = [4 7 1 6];
Output: x = 7;

You must NOT use MATLAB built in functions such as min(), max() or sort()

Solution Stats

29.72% Correct | 70.28% Incorrect
Last solution submitted on Oct 04, 2019

Solution Comments