Cache me Outside
The test suite includes a simple recursive Fibonacci sequence generator, but it's terribly inefficient. One simple method for im...
5 years ago
Solved
newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.
5 years ago
Solved
Can the knight take out the pawn?
* position of knight = k
* position of pawns = p
can the knight take out those pawns?
* k='Nf4'
* p={'g6','g7'}
then...
5 years ago
Solved
Pluralization
Define function plu(n) that returns '' (an empty string) if n=1, or 's' otherwise. This is handy for displaying messages from a...
5 years ago
Solved
Hexagonal numbers on a spiral matrix
Put hexagonal numbers in a ( m x m ) spiral matrix and return the sum of its diagonal elements.
Formula of hexagonal numbers ...
5 years ago
Solved
Function composition - harder
Write a function that accepts an arbitrary number of function handles f_1, f_2, ..., f_n and returns the composition h. That is,...
5 years ago
Solved
Tic-Tac-Logic - Solution Checker
<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/tic-tac-logic/rules Tic-Tac-Logic> is a logic puzzle wherein a rectangula...
5 years ago
Solved
Filter values in a vector
Cody often benefits from a functional style of programming. For example, your score is often better when you compose multiple fu...