A résolu


Minimum Set (A+A)U(A*A) OEIS A263996
This Challenge is to find an integer vector A that creates the minimum set size for (A+A) U (A*A) for a given vector length, <ht...

presque 9 ans il y a

A résolu


How many problems and solutions did you like?
When I started to create problems in my early stages of playing Cody, one day, I realized that Aurelien Queffurust liked one of ...

presque 9 ans il y a

A résolu


Recycled Numbers (CodeJam Qualification Round 2012)
Let's say a pair of distinct positive integers ( _n_ , _m_ ) is recycled if you can obtain _m_ by moving some digits from the ...

presque 9 ans il y a

A résolu


Given n, create n random numbers such that their standard deviation is also n.
Given n, create n random numbers such that their standard deviation is also n.

presque 9 ans il y a

A résolu


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

presque 9 ans il y a

A résolu


Cell Operator *
Please implement operator * for cell: >> {2,3} * 2 ans = 1×4 cell array [2] [3] [2] [3] >> {2,3} * [2 3]...

presque 9 ans il y a

A résolu


Pipeline - Variable-length Input
Design the |gt|(>) method of |function_handle| so that: >> 1 > @sin > @cos ans = 0.666366745392881 >> cos(sin(1...

presque 9 ans il y a

A résolu


Throwing Dice - Will You Be Eaten By The Dragon?
You and a dragon have agreed to let dice rolls determine whether it eats you or not. The dragon will roll a single die, of x ...

presque 9 ans il y a

A résolu


Mastermind
We are playing the boardgame mastermind <https://en.wikipedia.org/wiki/Mastermind_(board_game)>. The game master has created a 4...

presque 9 ans il y a

A résolu


Mastermind V: Optimal Solver - average number of guesses
The following description contains a copy of Richard Zapor's <https://www.mathworks.com/matlabcentral/cody/problems/44239-master...

presque 9 ans il y a

A résolu


Mastermind IV: Optimal Solver - max of 5 guesses
<https://en.wikipedia.org/wiki/Mastermind_(board_game) Mastermind> is a code breaking logic puzzle. A pattern of 6 colors(values...

presque 9 ans il y a

A résolu


Mastermind III: Solve in 1
<https://en.wikipedia.org/wiki/Mastermind_(board_game) Mastermind> is a code breaking logic puzzle. A pattern of 6 colors(values...

presque 9 ans il y a

A résolu


Mastermind II: Solve in 8 or less
<https://en.wikipedia.org/wiki/Mastermind_(board_game) Mastermind> is a code breaking logic puzzle. A pattern of 6 colors(values...

presque 9 ans il y a

A résolu


Mastermind I: Solve all 1296 cases
<https://en.wikipedia.org/wiki/Mastermind_(board_game) Mastermind> is a code breaking logic puzzle. A pattern of 6 colors(values...

presque 9 ans il y a

A résolu


adding huge numbers
Write function called huge_add that adds together two positive integers of any length specified as char vectors using decimal n...

presque 9 ans il y a

A résolu


'5*3' copy character 3 - five times
The input is a string. Wherever a * sign occurs in string repeat copies of character on the right hand side of * sign. The numbe...

presque 9 ans il y a

A résolu


Find my secret function III
only write a function gives you an outputs as expls: input: x=2 ------->>> Output: Y=1 input: x=100 ------->>> Output: Y=...

presque 9 ans il y a

A résolu


Find my secret function I
If give my function a x value it will give me a y value, so find the secret of it: Examples: input x=[2 5 6 8 9] ---- >>> o...

presque 9 ans il y a

A résolu


Duration of a trip in minutes
Input is a string which includes the duration of a trip. Convert the duration to minutes. For example if the duration of a t...

presque 9 ans il y a

A résolu


I'm going to enjoy watching you calculate, Mr Anderson
Smith numbers are numbers such that if you add up all of the digits in the number, that sum equals the sum of all of the digits ...

presque 9 ans il y a

A résolu


Sort the prime numbers in each row of a 3x3 matrix
Considering a 3x3 matrix A, sort the prime numbers of each row in ascending order. For exemple: input A=[5 8 2 4; ...

presque 9 ans il y a

A résolu


Can the given sides form a triangle?
Can the three given sides form a triangle?

presque 9 ans il y a

A résolu


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

presque 9 ans il y a

A résolu


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

presque 9 ans il y a

A résolu


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

presque 9 ans il y a

A résolu


Permute the unique values of a vector without sorting
Given a vector A, return the matrix B, wherein each row contains a permutation of the unique values in original vector while ret...

presque 9 ans il y a

A résolu


write a function to calculate the snr after quantizing the signal in dB
osig : original signal qsig : quantized signal qerror : quantization error HINT: snr = 10×log10(sum(osig × osig)/sum...

presque 9 ans il y a

A résolu


Rankine to Kelvin Converter
Given input R, degrees Rankine, convert into degrees Kelvin.

presque 9 ans il y a

A résolu


Count the Digits in the Box
In this problem you must provide an accurate census of all the digits inside a given box. The problem is complicated by the fact...

presque 9 ans il y a

A résolu


Find the sines of an isosceles triangle when given its area and height to its base.
Find the sines of an isosceles triangle when given its area and height to its base. For example, when A=60 and h=5, the resul...

presque 9 ans il y a

Charger plus