Cody

Problem 42845. generate number in particular way

Created by Pramit Biswas in Community
    A = [1 5 2 7];
    MAX = 10;

generate a array

    Y = [1 2 2 2 2 2 3 3 4 4];

i.e. total element will be MAX in Y

Solution Stats

61.54% Correct | 38.46% Incorrect
Last solution submitted on Apr 29, 2019

Problem Comments