已解决


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

9 years 前

已解决


Number of primes
Count the number of primes less than 'n'.

9 years 前

已解决


Beat the test suite if you can :)
Test Suites are laid there for clues

9 years 前

已解决


Creating a code via test suite :)
Given the test suites, create a code that would fit them :) *Clue: Pascal's Triangle

9 years 前

已解决


Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

9 years 前

已解决


Convert a vector to a lower triangular matrix
I now have a row vector and I want to convert it to a lower trilangular matrix. The rows of the lower trilangular matrix have...

9 years 前

已解决


kmph to mph converter
Convert the speed in miles/hour to km/hour.

9 years 前

已解决


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

9 years 前

已解决


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

9 years 前

已解决


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

9 years 前

已解决


Odd row
Create a row 'y' with odd numbers where the range of numbers is given by 'x' and the space between them by 'm'. The first number...

9 years 前

已解决


Simpsons's rule (but not Homer Simpson)
I wonder what Homer Simpson would have thought of Simpson's rule? Somehow I doubt his thoughts would have included the phrase Ne...

9 years 前

已解决


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

9 years 前

已解决


Find remainder when x is divided by 3
Find remainder when x is divided by 3

9 years 前

已解决


Calculating cost
You sold a Product at $x and gain 10% What was the cost of the product?

9 years 前

已解决


Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

9 years 前

已解决


Vector addition
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

9 years 前

已解决


what can you get for exactly amount of money
You go to store, where each product has price. Prices are in vector s= [ 195 125 260 440 395 290] and you have amount of ...

9 years 前

已解决


find the Area of a rectangle
length is x width is y what is the area of the rectangle?

9 years 前

已解决


Linear system of equations
Solve the system of equations in three variables.

9 years 前

已解决


this is a test problem
this is a anniversary test problem

9 years 前

已解决


Vector multiplication
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

9 years 前

已解决


Roots of a quadratic equation.
Determine the roots of a quadratic equation., if coefficients a,b and c are given.

9 years 前

已解决


Find unique number in input
Find value that occurs in odd number of input elements.

9 years 前

已解决


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

9 years 前

已解决


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

9 years 前

已解决


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

9 years 前

问题


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

9 years 前 | 0 | 79 个解题者

已解决


find square root of a positive real number
a number given, find the square root of that number

9 years 前

已解决


list of prime numbers
n is given find the largest prime number <=n

9 years 前

加载更多