Solved


Modular multiplicative inverse
Modular multiplicative inverse is used for _The Chinese Remainder Theorem_ and _RSA algorithm_. You can visit <http://en.wikiped...

3 giorni ago

Solved


COUNT VOWEL 2
The objective of this problem is to determine the number of unique vowels used in the given string. Now count vowels in STRI...

3 giorni ago

Solved


Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

3 giorni ago

Solved


Generate pi using logarithm
Generate pi using logarithm

5 giorni ago

Solved


Raise Matrix to Power
For a given square matrix x and scalar a, find x^a without using '^' or 'mpower'.

5 giorni ago

Solved


Guess the Coefficients!
Given a polynomial _p_ known to have positive integer coefficients, deduce the values of the coefficients. For example: ...

5 giorni ago

Solved


Subtract two positive numbers
Given a and b as a string, return b-a without using string to number conversion functions. a and b must to be a same size and b ...

5 giorni ago

Problem


Easy Sequences 43: Least Common Fibonacci Number
The Fibonacci sequence is a series whose elements are numbers starting with and , and subsequent Fibonacci numbers are defined...

7 giorni ago | 0 | 0 solvers

Solved


Convert from Base 10 to base 5
Convert the input number from base 10 into base 5: for example: if a(in base 10)= 5 then a(in base 5)= 10

8 giorni ago

Solved


mathematics , probability problem
How many different result can we have, rolling k dice?

8 giorni ago

Solved


Divisors of an integer
Given a number N, return a vector V of all integers that divide N. For example, N = 10 Then V=[1 2 5 10]

8 giorni ago

Solved


Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0; ...

8 giorni ago

Solved


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

8 giorni ago

Solved


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

8 giorni ago

Solved


Will there be a new leader?
Simply answer the title.

8 giorni ago

Solved


Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

8 giorni ago

Problem


Easy Sequences 42: Areas of Non-constructible Polygons
A constructible polygon is a regular polygon that can be constructed using only a compass and a straightedge. Amazingly, Gauss ...

8 giorni ago | 0 | 0 solvers

Solved


Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...

9 giorni ago

Solved


Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

10 giorni ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

10 giorni ago

Problem


Easy Sequences 41: Boxes with Integer Edges
For this problem, we are asked to write a function that will count the number of boxes with integer edges, that has the same giv...

11 giorni ago | 1 | 2 solvers

Problem


Easy Sequences 40: Quadratic Congruence
Quadratic Congruence is a modular equation of the form: . In this exercise you will be given a vector containing the coefficie...

12 giorni ago | 1 | 3 solvers

Solved


Area of rhombus
Calculate the rhombus area

12 giorni ago

Solved


Calculate the integral of the polynomial
for e.g. in = [3 2 1] out = [1 1 1 0]

12 giorni ago

Solved


calculate linear convolution two vectors
for e.g in: a = [1 2 3] b = [4 5 6] out: y = [4 13 28 27 18]

12 giorni ago

Solved


Weave two vectors into one
Weave the two given vectors into one as shown below. Example: If a = [1 1 1] b = [0 0 0] then y = [1 0 1 0 ...

12 giorni ago

Solved


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

12 giorni ago

Solved


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

12 giorni ago

Solved


convert matrix to single column
given any matrix, convert it to single column

13 giorni ago

Solved


Easy Sequences 39: Perfect Squares in Pascal's Triangle
Consider the 2nd, 3rd and 4th diagonals of the Pascal's Triangle, shown highlighted below: ...

13 giorni ago

Load more