Solved

Alternate elements!

Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

2 months ago

Solved

Apply a function array to an array of numbers

It is required to apply a cell array of functions to a numerical array, where the functions accept only scalar inputs. Exampl...

2 months ago

Solved

Mann-Kendall Correlation

Write a function that returns the <http://en.wikipedia.org/wiki/Kendall_tau_rank_correlation_coefficient Mann-Kendall> correlati...

2 months ago

Solved

Uniform binary crossover

Given two binary vectors, return the two children by combining the genes of them using a binary crossover mask. More informat...

2 months ago

Solved

Weird Diagonal Matrix!!

Given an integer n, create a matrix whose diagonal elements will be square matrices of size 1 to n. For example: n=2 z = ...

2 months ago

Solved

Draw a Diamond shape in ones Matrix with '0' s

Input will be odd numbers.The task is to make a Diamond shape in a ones matrix with '0's where the matrix will be a square matri...

2 months ago

Solved

Accumulate Cells

Given a combining function, a cell array, and an initial value, accumulate the result. For example, accumcell(@plus,{1,...

3 months ago

Solved

GJam: 2013 Rd1a Bullseye Painting

<http://code.google.com/codejam/contests.html Google Code Jam> 2013 Round 1a Bullseye challenge is to determine how many full ri...

3 months ago

Solved

GJam 2014 China Rd B: Sudoku Checker

This Challenge is derived from <http://code.google.com/codejam/contest/2929486/dashboard#s=p0 GJam 2014 China Sudoku>. Large Cas...

3 months ago

Solved

GJam 2014 China Rd A: Library Sorting (Large)

This Challenge is derived from <http://code.google.com/codejam/contest/2924486/dashboard#s=p2 GJam 2014 China Sorting>. Subset ...

3 months ago

Solved

GJam 2014 China Rd A: Library Sorting (Small)

This Challenge is derived from <http://code.google.com/codejam/contest/2924486/dashboard#s=p2 GJam 2014 China Sorting>. This...

3 months ago

Solved

Functional inputs

Return an n-dimensional array whose elements are the results of a function over a set of vectors. The (i,j,k, ...n)th element...

3 months ago

Solved

Create a recurrence matrix for a vector of data

In <https://en.wikipedia.org/wiki/Conversation_analysis conversation analysis>, it's often useful to track the contributions fro...

3 months ago

Solved

Find the solution of algebraic equation

Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0; ...

3 months ago

Solved

String Logic 11

Examples: 'SUNDAY' --> 6 'MONDAY' --> 6 'TUESDAY' --> 7 'WEDNESDAY' --> 9 'THURSDAY' --> 8 'FRIDAY' --> 5 'SATURDAY' --...

3 months ago