문제를 풀었습니다


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

15일 전

문제를 풀었습니다


Triangular matrices in 3D array
Given a 3D numeric array _x_, return an array _y_ of the same size in which all entries to the right of the main diagonal are ze...

15일 전

문제를 풀었습니다


Numbers spiral diagonals (Part 1)
Inspired by Project Euler n°28 et 58. A n x n spiral matrix is obtained by starting with the number 1 and moving to the right...

15일 전

문제를 풀었습니다


Matrix Construction I
Given n, construct a matrix as shown in the example below. Example For n=8, the output should look like this: 1 2 3 4 ...

15일 전

문제를 풀었습니다


Rainbow matrix
Create a "rainbow matrix" as described in the following examples Input = 3 Output = [ 1 2 3 2 3 2 ...

15일 전

문제를 풀었습니다


BULLSEYE Part 2: Reference Problem 18 BULLSEYE
Given n (always odd), return output a that has concentric rings of the 1s and 0s around the center point. Examples: Input ...

15일 전

문제를 풀었습니다


Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

16일 전

문제를 풀었습니다


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given number of...

16일 전

문제를 풀었습니다


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

16일 전

문제를 풀었습니다


Make a rainbow matrix (follow-up to checkerboard matrix)
Given an integer n, make an n-by-n matrix as shown below. The a(1,1) should be 0. As we move away from the top-left, the number ...

16일 전

문제를 풀었습니다


Tent matrix
Create an n x n matrix that resembles one kind of tent. The variable n is provided to the function and will be an odd number. As...

16일 전

문제를 풀었습니다


Produce the following matrix
Produce the following matrix x = [2 3 4] y_correct = [1 1/2 1/3; 2 1 1/4; 3 4 1];

16일 전

문제를 풀었습니다


Check if a matrix is a palindrome in all directions
Check if a matrix is a palindrome both vertically and horizontally. You function will return *true* for |[1,2,1]| or |[2,7,2;...

16일 전

문제를 풀었습니다


Dice face matrix!
This is dice simulator, but instead of making a random die number, you will receive an "pre-rolled" number in and spit out a mat...

16일 전

문제를 풀었습니다


Find the Pattern 10

16일 전

문제를 풀었습니다


Find Logic 32

16일 전

문제를 풀었습니다


Find Logic 31

16일 전

문제를 풀었습니다


Find Logic 30

16일 전

문제를 풀었습니다


Find Logic 29

16일 전

문제를 풀었습니다


Find Logic 28

16일 전

문제를 풀었습니다


Find Logic 27

16일 전

문제를 풀었습니다


Find Logic 26

16일 전

문제를 풀었습니다


Find Logic 25

16일 전

문제를 풀었습니다


Find Logic 24

16일 전

문제를 풀었습니다


Find Logic 23

16일 전

문제를 풀었습니다


Find Logic 22

16일 전

문제를 풀었습니다


Find Logic 21

16일 전

문제를 풀었습니다


Find Logic 20

16일 전

문제를 풀었습니다


Find Logic 1

16일 전

문제를 풀었습니다


Find Logic 3

16일 전

더 보기