문제를 풀었습니다


Next Tribonacci Number
The "Tribonacci" sequence is an extension of the idea of the Fibonacci sequence: That is, each new term is the sum of the thr...

3년 초과 전

문제를 풀었습니다


Determine if x is a combination of m and n
Given positive integers x, m, and n, determine if x can be written as x = am + bn for any (non-negative) integers a and b. Your ...

3년 초과 전

문제를 풀었습니다


Calculating Student Grades
The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

3년 초과 전

문제를 풀었습니다


Dog Statistics
The vectors ht and wt contains the heights and weights of 20 golden retrievers. In some cases, it was not possible to make both ...

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

제출됨


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

거의 4년 전 | 다운로드 수: 8 |

0.0 / 5
Thumbnail

제출됨


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

대략 4년 전 | 다운로드 수: 4 |

0.0 / 5
Thumbnail

문제를 풀었습니다


Number Puzzles - 006

4년 초과 전

문제를 풀었습니다


Number Puzzles - 008

4년 초과 전

문제를 풀었습니다


Number Puzzles - 009

4년 초과 전

문제를 풀었습니다


Number Puzzles - 011

4년 초과 전

문제를 풀었습니다


Number Puzzles - 005

4년 초과 전

문제를 풀었습니다


Number Puzzles - 010

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


Number Puzzles - 007

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


Area of a triangle given its sides

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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.

4년 초과 전

더 보기