解決済み


Simpson's Paradox - Calculate correlation coefficients for groups of data
Simpson's Paradox is a statistical phenomenon where groups of data can have a characteristic while the whole data set together h...

1年以上 前

解決済み


Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

1年以上 前

解決済み


Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

1年以上 前

解決済み


Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

1年以上 前

解決済み


Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...

1年以上 前

解決済み


Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

1年以上 前

送信済み


Tutorial: Bayesian Optimization
1D and 2D black-box Bayesian optimization demonstration with visualizations.

1年以上 前 | ダウンロード 24 件 |

Thumbnail

送信済み


Tutorial: Genetic Algorithm and Particle Swarm Optimization
GA and PSO: Code with comments for understanding the algorithms.

2年弱 前 | ダウンロード 7 件 |

Thumbnail

解決済み


Number Puzzles - 006

2年弱 前

解決済み


Number Puzzles - 008

2年弱 前

解決済み


Number Puzzles - 009

2年弱 前

解決済み


Number Puzzles - 011

2年弱 前

解決済み


Number Puzzles - 005

2年弱 前

解決済み


Number Puzzles - 010

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年弱 前

解決済み


Number Puzzles - 007

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年弱 前

解決済み


Area of a triangle given its sides

2年弱 前

解決済み


Mean number of letters per word (Easy)
Given a character array, s, representing a sentence, return a, the arithmetic mean of the number of letters per word in the give...

2年弱 前

解決済み


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

2年弱 前

解決済み


Add the number of horizontal and vertical movements to each matrix element
Given n, create a square matrix and with element (1,1) = 1, add 1 to each element for each horitizonal and vertical movement. E...

2年弱 前

解決済み


Area of a regular hexagon
Given the length of a side of a regular hexagon, return its area rounded to two decimal places.

2年弱 前

解決済み


Make a checkerboard matrix
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. Examp...

約2年 前

解決済み


Add two numbers
Given a and b, return the sum a+b in c.

約2年 前

解決済み


what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

約2年 前

解決済み


Height of a 3D Pyramid
If a pyramid is made with one(1). What will be the height of the pyramid of square shaped base(n*n)? where input is n.

約2年 前

解決済み


Pairwise column flip
Given matrix *M_in*, flip every pair of columns. So if *M_in* is 1 2 3 4 1 2 3 4 then *M_out* is 2 1 4 3 2 1 4 3 ...

約2年 前

解決済み


Tribonacci Sequence
Generate the tribonacci sequence upto n

約2年 前

解決済み


Total resistance of a network of resistors in series and parallel
What is the total resistance of a network of resistors in series and in parallel? A matrix R contains the resistances (in Ohm) ...

約2年 前

解決済み


Find the summation, mean, median, mode and standard deviation of a given array.
An array is given. Find out the summation, mean, median, mode and standard deviation of a given array. If x=[1,2,2,3,3,3,4,4,4,...

約2年 前

さらに読み込む