解決済み

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...

約2ヶ月 前

解決済み

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...

約2ヶ月 前

解決済み

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...

2ヶ月 前

解決済み

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...

2ヶ月 前

解決済み

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...

2ヶ月 前

解決済み

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; ...

2ヶ月 前

解決済み

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ヶ月 前

解決済み

Largest Geometric Series

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

2ヶ月 前

解決済み

Find similar sequences

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

2ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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 ....

5ヶ月 前

解決済み

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...

5ヶ月 前

解決済み

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...

5ヶ月 前

解決済み

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 <=...

5ヶ月 前

解決済み

Create Combination

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

5ヶ月 前

解決済み

Next lexicographic - permutation

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

5ヶ月 前