Gelöst


Exponents in Factorials(hard)
This is problem is a harder version of "Problem 44747. Exponents in Factorials". <https://ww2.mathworks.cn/matlabcentral/cody/p...

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Problem


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

mehr als 7 Jahre vor | 5 | 30 Lösungsvorschläge

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


Primes Checker
Given variable inputs Check if they are prime numbers

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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.

fast 8 Jahre vor

Mehr laden