문제를 풀었습니다


Exponents in Factorials
It's time to get excited about numbers!!! Well, we're just dealing with factorials here, but it's still a good reason to get ex...

7년 초과 전

문제


Exponents in Factorials
It's time to get excited about numbers!!! Well, we're just dealing with factorials here, but it's still a good reason to get ex...

7년 초과 전 | 5 | 솔버 수: 29

문제를 풀었습니다


007: Chinese Barrack Invasion
*MISSION:* Successfully invade a military barrack located in China. *WARNING:* There is a row of _n_ security switches protec...

7년 초과 전

문제를 풀었습니다


Counting Squares
An algorithm starts with a single square and on each of its next iterations adds new squares all around the outside as shown bel...

7년 초과 전

문제를 풀었습니다


Sherlock Holmes: The Spy Problem
A guest at a party is a spy if this person is not known by any other guest, but knows all of them. There is at most one spy at a...

7년 초과 전

문제를 풀었습니다


Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

7년 초과 전

문제를 풀었습니다


Find the area of a triangle having vertices (A,B), (C,D), and (E,F)
Find the area of a triangle using if we have the three vertices of the triangle

7년 초과 전

문제를 풀었습니다


Pizza order
A pizza order by phone in diameter d1, pizza will be make only in diameter d2. Return the pizza pieces p should be make.(pizza ...

7년 초과 전

문제를 풀었습니다


New Matrix with vector addition on diagonal
consider 2 vectors x=[1 2 3] y=[4 5 6] then generate a new Matrix, where Addition of x & y will be diagonal Elements...

7년 초과 전

문제를 풀었습니다


Return all matrix elements except elements on diagonal
Consider a given Matrix A=[a b c; d e f; g h i] then return a row vector T such that it contains all the El...

7년 초과 전

문제를 풀었습니다


Reverse the Matrix
Given a Matrix A, reverse it. Such that, last element of A becomes 1st and vice versa. for example: Input = [1 2 3;4 5 ...

7년 초과 전

문제를 풀었습니다


Get the combinations
Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

7년 초과 전

문제를 풀었습니다


Transpose the Matrix
Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

7년 초과 전

문제를 풀었습니다


Aztec Diamond Domino Tilings
Consider a Cartesian grid, with verteces at integer x and y values, where every four vertices around a vacant space define a uni...

7년 초과 전

문제를 풀었습니다


Conic equation
A conic of revolution (around the |z| axis) can be defined by the equation s^2 – 2*R*z + (k+1)*z^2 = 0 where |s^2=x^2+y...

7년 초과 전

문제를 풀었습니다


Find the sines of an isosceles triangle when given its area and height
Find the sines of an isosceles triangle when given its area and height. For example, when A=60 and h=5, the result is [0.3752...

7년 초과 전

문제를 풀었습니다


Prime Product
My professor has given a sequence of N numbers as a1, a2, ..., aN and asked me to find the smallest possible value of ai * aj su...

7년 초과 전

문제를 풀었습니다


how many of the entries are positive?
Given x= sin(linspace(0,10*pi,100)), how many of the entries are positive?

7년 초과 전

문제를 풀었습니다


count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

7년 초과 전

문제를 풀었습니다


Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

7년 초과 전

문제를 풀었습니다


Highly divisible triangular number (inspired by Project Euler 12)
Triangular numbers can be calculated by the sum from 1 to n. For example, the first 10 triangular numbers are: 1, 3, 6, 10, ...

7년 초과 전

문제를 풀었습니다


Large Sum (inspired by Project Euler 13)
Your function will be provided an arbitrary number of numbers of arbitrary sizes as a cell array of strings. Some numbers will b...

7년 초과 전

문제를 풀었습니다


Find product of eigenvalues of n*n magic matrix.
Find product of eigenvalues of n*n magic matrix. Example n=3 Matrix= [ 8 1 6; 3 5 7; 4 ...

7년 초과 전

문제를 풀었습니다


How do you make seven even?
Take away the s.

7년 초과 전

문제를 풀었습니다


Primes Checker
Given variable inputs Check if they are prime numbers

7년 초과 전

문제를 풀었습니다


Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

7년 초과 전

문제를 풀었습니다


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

7년 초과 전

문제를 풀었습니다


Select primes from the matrix.
Select primes from the matrix.

7년 초과 전

문제를 풀었습니다


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

7년 초과 전

문제를 풀었습니다


Set x value to each even index of vector y.
Set x value to each even index of vector y.

7년 초과 전

더 보기