9:52 PM
Draft: Take an array of numbers. Take the sum, but where every second item is negated.
Draft: Append two matrices [[0,1],[4,5]], [[2,3],[6,7]] => [[0,1,2,3],[4,5,6,7]]
Draft: Given a matrix of numbers, return the sums of each row and the products of each column (as two lists or something like that)
Draft: Take an arithmetic operator in the form of a function (one of addition, subtraction, multiplication, or division), and return one of +
, -
, *
, or /
depending on what it is
Draft: Given an integer n
, output an integer x
such that [n+x, n-x, n×x, n÷x, n*x]
are all unique integers (*
is power)
Draft: Join a list of strings using another string
Draft: Collapse all identical characters
Draft: draw a certain shape that is 8x8. the code should also look like the same shape. 8 lines should be used in the program then.
Draft: Given a multidimensional array, return how many dimensions it has
Draft: Take two (cartesian) coordinate points. Rotate the first around the origin in 90° increments, and return the one closest to the second point
Draft: Given a Cartesian coordinate point, output its polar form
Draft: Given a complex number, represent it in polar form :P
Draft: Calculate compound interest
Draft: Interleave n lists
Draft: Take a string of test cases, separated by newlines, with the input and output separated with a ->
. Return a multidimensional array (with each test case represented as [input, output]
) or dictionary of them.
Draft: take an input, then for each word, set their letters in alphabetical order keeping their repetitive ones, then output the whole thing.
Draft: Subsequences, going out from the center ('ABCD' -> ['BC', 'ABCD'], 'ABCDE' -> ['C', 'BCD', 'ABCDE'])
Draft: write a program that should output a reversed input. if I have "we're no strangers to love", then the result should be "er'ew on sregnarts ot evol".