A résolu


Sudoku square
We have a small sudoku square, but we miss one number. x=[ 1 5 4; 8 6 3; 0 9 7]; Make a function, where output is fi...

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


this is a test problem
this is a anniversary test problem

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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]

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

Problème


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

presque 10 ans il y a | 0 | 80 solveurs

A résolu


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

presque 10 ans il y a

Charger plus