Gelöst


Sum of the squares of optimus
Get the sum of the squares of primes given limit input x Ex. x = 10, output = 2^2 + 3^2 + 5^2 + 7^2

mehr als 9 Jahre vor

Gelöst


Square of the sum of optimus
Get the square of the sum of all primes given the limit input x

mehr als 9 Jahre vor

Gelöst


Mode of Optimus!!!
Get the mode of primes of input x When you get the output, you'll know what mode Optimus is always using :)

mehr als 9 Jahre vor

Gelöst


Check that given number is 3*n
Check that input of multiple of three (3*n). if given number is included in 3*n, print true. (hint: use mod)

mehr als 9 Jahre vor

Gelöst


Calculate this one!
Using matlab calculate y y=(e^2)+100/20+sin(pi)

fast 10 Jahre vor

Gelöst


Translate German decimals to English decimals
The string 'x = [2,5; 5,5; 4,3];' should return 'y = [2.5; 5.5; 4.3];'

fast 10 Jahre vor

Gelöst


Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

fast 10 Jahre vor

Gelöst


cody exploit
I made this one to bring attention to a cody exploit that a lot of people seem to be abusing.

fast 10 Jahre vor

Gelöst


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

fast 10 Jahre vor

Gelöst


Resort number using given index!
Resort matrix [a] using given index [b]. For example, if a=[2 5 3 5]; b=[4 1 2 3]; , the result is [5 2 5 3]. (hint: y...

fast 10 Jahre vor

Gelöst


Sort matrix a according to ascending order of B!
To be specific, A=[9 3 1 3] B=[1 3 2 4] are provided, ascending sorting of B is [B(1) B(3) B(2) B(4)]. Thus ...

fast 10 Jahre vor

Gelöst


Extract a part of matrix!
There is matrix A A=[1 2 3; 4 5 6; 7 8 9] Extract a part of matrix A from (2,2) to (3,3). Result should...

fast 10 Jahre vor

Gelöst


Delete useless part of data
When someone deals with big data. if the person delete useless part, calculation will be more faster than before deleting. De...

fast 10 Jahre vor

Gelöst


Make this function tell you to go to bed.
Don't change the template. Just run it at a time at which it tells you to go to bed.

fast 10 Jahre vor

Gelöst


Pushing the envelope
Find the largest sized code to return... *nothing*.

fast 10 Jahre vor

Gelöst


Calculate z=x^2+y^2
There are z in (x,y). x=1:10;y=1:10 [x y]=meshgrid(x,y) Calculate x^2+y^2.

fast 10 Jahre vor

Gelöst


Calculate polynomial equation
Calculate this equation using given x 1+x+x^2+x^3+....x^99 (hint: use polyval)

fast 10 Jahre vor

Gelöst


Frequency Analysis of Text
Frequency analysis is a common task in cryptoanalysis. It is essentially counting the occurrences of alphabets (regardless of ca...

fast 10 Jahre vor

Gelöst


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

fast 10 Jahre vor

Gelöst


Basic commands - How old is your matlab version?
Please make a function, which gives amount of days since release it's version.

fast 10 Jahre vor

Gelöst


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

fast 10 Jahre vor

Gelöst


Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

fast 10 Jahre vor

Gelöst


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

fast 10 Jahre vor

Gelöst


Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

fast 10 Jahre vor

Gelöst


Exponential Growth and Decay
Calculus time!! Find dx/dy or (k) Given y(0), y(t) and t

fast 10 Jahre vor

Gelöst


While I am not equal
Iterate by z(input) until not equal to baseline. Output will be equal to number of iterations x = -5 y = 8 z = 3 output = 5

fast 10 Jahre vor

Beantwortet
How to code a function of the Probability mass function of the Poisson binomial distribution
You may use nchoosek. F_k is nothing but a k-element subset of {1,2,3,...,n}. The sum is over all possible F_k, which can be gen...

fast 10 Jahre vor | 0

| akzeptiert

Gelöst


Leap year or Not
Check if a given year is Leap year or not.

fast 10 Jahre vor

Gelöst


ADD TWO NUMBERS
To add two numbers a and b, then store in y

fast 10 Jahre vor

Gelöst


What's my favourite food?
The spicier the better.

fast 10 Jahre vor

Mehr laden