Problem 1771. Polygonal numbers
44.78% Correct | 55.22% Incorrect
Last Solution submitted on Feb 13, 2023
Show 1 older comment
Matthew Eicholtz on 25 Aug 2015
I think the numbers in the description may be wrong. For hexagonal numbers, shouldn't the progression be [1,6,15,28]?
Daniel Pereira on 11 Feb 2016
I believe that test suite number 6 is a little bit unfair, since the difficulty of this problem relies on creating the function that gives the n-th s-gonal number, and not making use of meshgrid or bsxfun.
Massimo Zanetti on 14 Oct 2016
Remove test case 6 please.. it makes no sense
Jan Orwat on 15 Oct 2016
Explain why. It makes a lot of sense to me, and it's a lot easier (and makes even more educational sense) with 2016b. Just learn the difference between * and .* and ask yourself you need 1st or 2nd.
Problem Recent Solvers118
More from this Author40
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!