Search:
MATLAB Central
File Exchange
Answers
Newsgroup
Link Exchange
Blogs
Trendy
Cody
Contest
MathWorks.com
Create Account
Log In
File Exchange
Answers
Newsgroup
Link Exchange
Blogs
Trendy
Cody
Contest
MathWorks.com
Problems
Solutions
Players
Recent Activity
Log In
to solve and create problems.
Create a Problem
About Cody
Problem 170. First N Perfect Squares
Created by
@bmtran
Description
Return the first N perfect squares
Example
input = 4; output = [ 1 4 9 16 ];
Tags
increment
,
integers
,
math
,
natural numbers
,
perfect squares
Problem Group
Community
Solve This Now!
150 solvers submitted 242 solutions (1.61 solutions/solver).
Solution Map
Solution List
Solvers
Solution Comments
Solution 207518
1 Comment
James Kristoff
on 15 May 2013 at 20:23
I have seen this type of solution several times, and it is completely counter to the spirit of Cody. It is no different than an EVAL statement. :(
1 Comment