A résolu


N-Dimensional Array Slice
Given an N-dimensional array, _A_, an index, _I_, and a dimension, _d_, return the _I_ th elements of _A_ in the _d_ dimension. ...

plus de 3 ans il y a

A résolu


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

plus de 3 ans il y a

A résolu


Some Assembly Required
The input to this function is a matrix of real numbers. Your job is to assemble the rows of the matrix into one large row that ...

plus de 3 ans il y a

A résolu


Math with Roman Numerals
Given a function R within (+,-,*,/) and two Roman numerals a & b, compute aRb in Roman numerals.

plus de 3 ans il y a

A résolu


Construct a "diagAdiag" matrix
Construct a matrix whose elements begin from 1 and end at n^2 with the order of arrangement as shown below: For: n = 4 ...

plus de 3 ans il y a

A résolu


love is an n-letter word
Given a list of *N words*, return the *N-letter word* (choosing one letter from each word) with the property of having the least...

plus de 3 ans il y a

A résolu


Reverse Boggle
*Description* In the classic Parker Brothers game <http://en.wikipedia.org/wiki/Boggle Boggle>, players find words from a 4x4...

plus de 3 ans il y a

A résolu


Make a function that returns its own character count
Write a function that returns a 128 element vector with an accurate inventory of the ASCII characters in its own function file. ...

plus de 3 ans il y a

A résolu


Cumulative minimum of an array
Find the cumulative minimum of an array without using the built-in function <http://www.mathworks.com/help/matlab/ref/cummin.htm...

plus de 3 ans il y a

A résolu


Cumulative maximum of an array
Find the cumulative maximum of an array without using the built-in function cummax (and a few others). Your function should act ...

plus de 3 ans il y a

A résolu


Find the Final State of an Abelian Sandpile
Let us define an <http://nautil.us/issue/23/dominoes/the-amazing-autotuning-sandpile Abelian sand pile> as a matrix that is only...

plus de 3 ans il y a

A résolu


Easy Sequences 7: Easy as Composite Pi
The prime Pi function is defined as the number of prime numbers from 1 to a certain given limit. In MATLAB, it is easy to create...

plus de 3 ans il y a

A résolu


Easy Sequences 37: Natural Factorable Polynomials
A polynomial of the form: , for , is said to be natural factorable if it can be factored into products of first degree binomials...

plus de 3 ans il y a

A résolu


Easy Sequences 36: Hyperbolic Lattice Points
The graph, shown below, of the hyperbola: , passes through four positive lattice points:. ...

plus de 3 ans il y a

A résolu


Easy Sequences 35: Cutting a donut to Semi-prime pieces
The figure below illustrates how a torus (donut shape) can be cut in pieces with only cuts: ...

plus de 3 ans il y a

A résolu


Easy Sequences 29: Odd proper divisors of odd proper divisors
The number is special. It has odd number of proper divisors: . Furthermore, if you take any of its proper divisors, say , it t...

plus de 3 ans il y a

A résolu


Easy Sequences 22: Sum of Proper Fractions
Let 'F' be the set of all proper fractions in lowest term, whose denominator is less than or equal 'd'. So, for d = 10, we have:...

plus de 3 ans il y a

A résolu


Easy Sequences 20: Counting Prime-sided Rectangles
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

plus de 3 ans il y a

A résolu


Easy Sequences 19: Length of Prime-sided Rectangle with Maximum Area
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

plus de 3 ans il y a

A résolu


Easy Sequences 17: Mu Variant Function
The mobius function is an important arithmetic function. It is often represented by the Greek letter mu (μ), and is sometimes ca...

plus de 3 ans il y a

A résolu


Easy Sequences 15: Pythagorean Area with maximum Hypotenuse
A pythagorean triangle is defined as a right triangle with all three sides having integer lengths. Examples of pythogorean trian...

plus de 3 ans il y a

A résolu


Easy Sequences 8: Triangles with integer sides and prime perimeters
The triangle below is special. It has integer sides and a prime perimeter. Given an integer "n" we want to know how many t...

plus de 3 ans il y a

A résolu


Easy Sequences 40: Quadratic Congruence
Quadratic Congruence is a modular equation of the form: . In this exercise you will be given a vector containing the coefficie...

plus de 3 ans il y a

A résolu


Easy Sequences 34: Modified Pascal's Triangle
Consider the integer triangle below: It follows the same ...

plus de 3 ans il y a

A résolu


Easy Sequences 33: Web Trapped Ant
An ant is trapped on a spider web inside a can with open top. The can has a radius and height . A spider sitting on the outside...

plus de 3 ans il y a

A résolu


Easy Sequences 30: Nearly Pythagorean Triangles
A Nearly Pythagorean Triangle (abbreviated as "NPT'), is an integer-sided triangle whose square of the longest side, which we wi...

plus de 3 ans il y a

A résolu


Easy Sequences 26: Prime-Integer Line Segments
At the first quadrant in the -plane, you are asked to construct a line segment with the following specifications: Select a prim...

plus de 3 ans il y a

A résolu


Easy Sequences 28: Sum of Radicals of Integers
The radical of a positive integer is defined as the product of the distinct prime numbers dividing . For example, the distinct ...

plus de 3 ans il y a

A résolu


Easy Sequences 27: Product of Radicals of Integers
The radical of a positive integer is defined as the product of the distinct prime numbers dividing . For example, the distinct ...

plus de 3 ans il y a

A résolu


Easy Sequences 31: N-N's Sequence
We define the N-N's Sequence, as the series of all positive integers in ascending order and with repetition, wherein any number ...

plus de 3 ans il y a

Charger plus