Resuelto


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

más de 9 años hace

Resuelto


Convert degrees to radians
Given input in degrees, output to radians

más de 9 años hace

Resuelto


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

más de 9 años hace

Resuelto


Create a code for XNOR
Given two inputs, output XNOR of those two

más de 9 años hace

Resuelto


Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

más de 9 años hace

Resuelto


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


y=x
y=x

más de 9 años hace

Resuelto


Convert radians to degrees
Given input in radians, output to degrees

más de 9 años hace

Resuelto


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

más de 9 años hace

Resuelto


Change input vector
If a input vector is [3, 2, 6, 1, 6], the output vector is [3, 2, 6, 1, 6] + [1, 2, 3, 4, 5] = [4, 4, 9, 5, 11].

más de 9 años hace

Resuelto


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;

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


BaeIsAlwaysRight
Output yes whatever bae says

más de 9 años hace

Resuelto


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

más de 9 años hace

Resuelto


How to permute given 3d matrix?
A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

más de 9 años hace

Resuelto


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

más de 9 años hace

Resuelto


Compare two strings.
Compare two strings, whether they are equal or not.

más de 9 años hace

Resuelto


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

más de 9 años hace

Resuelto


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

más de 9 años hace

Resuelto


Find the outcast
All pairs have the same difference except for one. Output the index of the latter Example: input =[0 1; 1 0; ...

más de 9 años hace

Resuelto


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

más de 9 años hace

Resuelto


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

más de 9 años hace

Resuelto


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

más de 9 años hace

Resuelto


Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


'Repeat!'
if matrix x=[1 2;3 4] y should be [1 2 1 2; 3 4 3 4; 1 2 1 2; 3 4 3 4;............],repeat n times! try this!

más de 9 años hace

Cargar más