APL Quest 2017 Problems
Write a function that will return the first n odd natural numbers.
Write a function that takes an integer array and replaces all the odd numbers with the next greater even number.
Write a function that will remove text found between pairs of double quotes.
Write a function that calculates and returns the areas of 0 or more pie slices.
Write a function that takes a string representing a nucleotide and returns a `1` if it is a valid DNA string, `0` otherwise.
Write a function that takes a character vector as its right argument and k (the substring length) as its left argument and returns a vector of the k-mers of the original string.
Write a function that takes a character vector representing a DNA string and returns 4 integers of the number of occurrences for each of the symbols 'A', 'C', 'G', and 'T' respectively.
Write a function that takes a Boolean vector or scalar and “turns off” all the 1s after the first 1.
Write a function that takes a character vector or scalar and returns a Boolean vector indicating anywhere an element is followed by an element of the same value.
Write a function that will reshape a given array into the smallest square matrix that will contain all the elements of the argument, padding with additional elements if necessary.