Skip to content

APL Quest 2013 Problems

2013-1: Seems a Bit Odd To Me:

Write a function to produce a vector of the first n odd numbers.

2013-2: Making The Grade:

Write a function which returns the percent (from 0 to 100) of passing (65 or higher) grades in a vector of grades.

2013-3: What Is In a Word:

Write a function which returns the number of words in the given character scalar or vector.

2013-4: Keeping Things In Balance:

Write a function which returns a 1 if the opening and closing parentheses in a character vector are balanced, or a zero otherwise.

2013-5: Identity Crisis:

Write a function which produces an n×n identity matrix.

2013-6: Home On The Range:

Write a function which returns the magnitude of the range of a numeric array.

2013-7: Float Your Boat:

Write a function which selects the floating point (non-integer) numbers from a numeric vector.

2013-8: Go Forth And Multiply:

Write a function which produces a multiplication table.

2013-9: It Is a Moving Experience:

Write a function which produces n month moving averages for a year's worth of data.

2013-10: Solution Salvation:

Write a function which solves a set of linear equations.