Community Profile

Contact

Top 5% contributor

8 downloads

3 years ago

I tried the same approach for a while and got nowhere. I think there is some information that is predictive, but I never found ...

14062 views

Responded 5 years ago

I'm a little surprised by the form of the solutions. They aren't exactly *crosswords*. Is the scoring on this contest really t...

2 downloads

6 years ago

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

Solve this!

4 years ago

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^N? Thanks ...

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

Check if sorted. Example: Input x = [1 2 0] Output y is 0

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

Regardless of input, output the string 'yes'.

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries