Skip to content

APL Quest 2015 Problems

2015-1: Nag A Ram:

Write a function that takes two character vectors as its left and right arguments and returns `1` if they are anagrams of each other.

2015-2: Longest Streak:

Write a function that takes a numeric vector and returns the length of the longest streak of positive growth.

2015-3: Farey Tale:

Write a function that takes an integer right argument and returns a vector of the terms in the Farey sequence of that order.

2015-4: PDI - Progressive Dyadic Iota:

Write a function that implements progressive dyadic iota.

2015-5: He's so mean, he has no standard deviation:

Write a function that returns the population standard deviation of its numeric array right argument.

2015-6: Hey! This is My Space:

Write a function that takes, as each of its right and left arguments, a pair of co-ordinates representing diagonally opposite corners of two rectangles and returns a `1` if the rectangles overlap.

2015-7: Just in (Upper) Case:

Write a function to perform case-insensitive membership between two arrays.

2015-8: Unlucky 13:

Write a function to process output and change the 13s to 12.

2015-9: I'd Like Mine Scrambled Please:

Write a function that takes a character vector word as its argument and returns the word's letters juxtaposed as described above.

2015-10: Blaise'ing a Trail:

Write a function that takes an integer right argument representing the order of the Pascal's triangle to be created and returns a "nicely" formatted character matrix.