Resuelto


Multiplication
Multiply two numbers in a different manner. The numbers are given to you as vectors x and y. Example x = [ 1 2 0 1 ] ...

más de 12 años hace

Resuelto


Largest territory
Determine whose territory is largest. If there are two more large territory, determine a smaller number. For example, X ...

más de 12 años hace

Resuelto


Rainbow matrix
Create a "rainbow matrix" as described in the following examples Input = 3 Output = [ 1 2 3 2 3 2 ...

más de 12 años hace

Resuelto


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

más de 12 años hace

Resuelto


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

más de 12 años hace

Resuelto


Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

más de 12 años hace

Resuelto


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

más de 12 años hace

Resuelto


Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.

más de 12 años hace

Resuelto


How many rectangles in a grid ?
How many rectangles are there in an m × n grid ? For example, if m=1 & n=2, we have 3 rectangles.

más de 12 años hace

Resuelto


Slicing the cube
A bored matlab enthusiast has a cube with volume n^3. He decides to paint the entire surface of the cube red. Then, with slices...

más de 12 años hace

Resuelto


Which way to go?
Given an m*n grid, How many ways are there to go from upper left corner to the lower right one? You can only move right...

más de 12 años hace

Problema


Delete the rows in the middle
We will delete the rows in the middle and keep the first and the last rows. For example if input is [1 2 1 7 1 8 ...

más de 12 años hace | 0 | 36 solvers

Resuelto


Let's get back to school, and create multiplication tables
For a given range, create multiplication tables. (start is always < endno) Example start = 17 endno = 19 Then, ...

más de 12 años hace

Resuelto


Negative Infinity
Round the given array a towards negative infinity.

más de 12 años hace

Resuelto


Positive Infinity
Round the array a towards positive infinity

más de 12 años hace

Resuelto


2倍してみよう - ここからスタート!
初めにこの問題を試してみよう。 入力としてxを与え、それを2倍して結果をyに代入せよ。 Examples: Input x = 2 Output y is 4 Input x = 17 Output y is 34 ...

más de 12 años hace

Resuelto


most frequent character
Obtain most frequent character Let s='balaram'; output='a';

más de 12 años hace

Resuelto


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

más de 12 años hace

Resuelto


index of n in magic(n)
let input=5; magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 ...

más de 12 años hace

Resuelto


interesting center of magic matrix
output the centre of magic matrix of n input=7; output=25

más de 12 años hace

Resuelto


reverse string
input='rama' output='amar'

más de 12 años hace

Resuelto


ascii value
let input='a' output=97

más de 12 años hace

Resuelto


execute the declaration in strings and return value
execute the commands in strings and return value input='a=23' output=23

más de 12 años hace

Resuelto


Alternately upper-lower case
Alternately upper-lower case Let s='achyuta' output='AcHyUtA'

más de 12 años hace

Resuelto


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

más de 12 años hace

Resuelto


Orthonormal matrix
You decide whether any given matrix is an orthonormal matrix or not. If each column in a matrix is perpendicular to the other...

más de 12 años hace

Resuelto


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

más de 12 años hace

Resuelto


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

más de 12 años hace

Resuelto


Find offset of an element of a multi dimensional matrix
For a given multi dimensional matrix and given element, find its offset from the 1st element. Return 0, if element is not fo...

más de 12 años hace

Resuelto


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

más de 12 años hace

Cargar más