I do not understand how this code passes the test.
First N Perfect Squares
Bottles of beer
Get the length of a given vector
Flag largest magnitude swings as they occur
Area of a triangle
Find the peak 3n+1 sequence value
Reverse Run-Length Encoder
Return the 3n+1 sequence for n
Swap the first and last columns
Times 2 - START HERE
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office