Solved

Number Puzzles - 019

Borrowing the idea from Pascal Triangle, the following operation can be performed. Starting with an array of numbers from 1 to N...

circa 2 mesi ago

Solved

Number Puzzles - 004

Give an example of three distinct numbers greater than 10 whose both product and sum are palindromes. The answer is not unique a...

circa 2 mesi ago

Solved

Number Puzzles - 003

Find six non-zero integers a, b, c, d, e, and f which satisfy the following equations: All six integers must be different. Th...

circa 2 mesi ago

Solved

Area of Cylindrical Shell

Consider a cylinder with a non-zero thickness with an inner radius of r1 and an outer radius of r2. If the height of the cylinde...

circa 2 mesi ago

Solved

Filter British English into American English

Given a sentence written with British spelling, return the sentence with the offending word(s) replaced with the American spelli...

circa 2 mesi 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; ...

circa 2 mesi ago

Solved

With apologies to William Blake

Coder Coder, typing fast Sitting at your desk, aghast. What immortal MATLAB script will solve this problem, nice and qu...

2 mesi ago

Solved

Largest Geometric Series

Extension of Ned Gulley's wonderful <http://www.mathworks.com/matlabcentral/cody/problems/317 Problem 317>. In a geometric se...

2 mesi ago

Solved

Find similar sequences

Another problem inspired by a question on the <http://www.mathworks.com/matlabcentral/answers answers> forum. Given a matrix ...

2 mesi ago

Solved

Create a matrix map of increasing safety levels

The sole nuclear power plant at Grid City suddenly had a meltdown. Luckily, the plant was designed to be in full automation, so ...

4 mesi ago

Solved

Count the number of folds needed to pack a large sheet

In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

4 mesi ago

Solved

Calculate the sphericity of a Raschig ring

Sphericity is a measure of the roundness of any particle. It was defined by Wadell in 1935 as the ratio of the 'surface area of ...

4 mesi ago

Solved

N-th permutation.

Let write some permutations of positive integers. 1: 1 2 3 4 5 6 ... 2: 2 1 3 4 ... 3: 1 3 2 4 ... ...

4 mesi ago

Solved

Which permutation is it?

Let write some permutations of positive integers. 1: 1 2 3 4 5 6 ... 2: 2 1 3 4 ... 3: 1 3 2 4 ....

4 mesi ago

Solved

Get ranking of a combination looking for speed.

I have the numbers pulled without replacement from the set [1 2 3 4 5 6 7 8 9 10 11 12 13]; They are then ordered from least to...

4 mesi ago

Solved

Usage of java.math : N Choose K with unlimited precision

Calculate the binomial coefficient nchoosek with full accuracy. This challenge may use the wonderful word of java.math that allo...

4 mesi ago

Solved

NCHOOSEK - Time Optimization

*Input* * *V* —— Set of all choices, a vector of N, 1 < N < 100 * *K* —— Number of selected choices, a scalar, 0 <= K <=...

4 mesi ago

Solved

Create Combination

Motivation: In many problems, we need to create combinations with the function nchoosek. In some cases, however, choices are lim...

4 mesi ago

Solved

Next lexicographic - permutation

Find next lexicographic - permutation (permutations as it would occur in a dictionary order). E.g: nextP('ABCD') = ABDC If you...

4 mesi ago

Solved

Square root

Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

4 mesi ago

Solved

Calculate the average value of the elements in the array

Calculate the average value of the elements in the array

4 mesi ago