Resuelto


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

alrededor de 5 años hace

Resuelto


row removal
Consider a matrix and remove the first row of the matrix.

alrededor de 5 años hace

Resuelto


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

alrededor de 5 años hace

Resuelto


Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

alrededor de 5 años hace

Resuelto


Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm

alrededor de 5 años hace

Resuelto


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

alrededor de 5 años hace

Problema


Easy Sequences 34: Modified Pascal's triangle
Consider the integer triangle below: It follows the same ...

alrededor de 5 años hace | 1 | 11 solvers

Resuelto


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

alrededor de 5 años hace

Resuelto


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

alrededor de 5 años hace

Resuelto


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

alrededor de 5 años hace

Resuelto


Rank of matrix
Find the rank of given matrix

alrededor de 5 años hace

Resuelto


To convolve two vectors
To convolve two vectors

alrededor de 5 años hace

Resuelto


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

alrededor de 5 años hace

Resuelto


string comparision
compare two strings if both are same return 1 else return 0

alrededor de 5 años hace

Resuelto


Delete blanks at the end of string
you got to delete all blank spaces which appears at the end of string

alrededor de 5 años hace

Resuelto


volume of torus
Find volume of torus with a as major radius and b as minor

alrededor de 5 años hace

Resuelto


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

alrededor de 5 años hace

Resuelto


find whether it is prime or not
For a given number find if its prime

alrededor de 5 años hace

Resuelto


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

alrededor de 5 años hace

Resuelto


Output a vector which is table of 9
Output a vector which is table of 9

alrededor de 5 años hace

Resuelto


Find smallest number to leave a remainder of 1
given a vector of numbers, find the smallest number to be divisible by all of them with a remainder of 1. Note: input numbers wi...

alrededor de 5 años hace

Resuelto


Permutations of input vector
Find and output all permutations of given vector

alrededor de 5 años hace

Resuelto


Find Missing Number
A little problem (inspired by CodeChef) for the coffee break. A friend give you an array of size n-1 integers and these int...

alrededor de 5 años hace

Resuelto


Create cell array of strings
Convert the input to a cell array, but only if necessary. If the input is a string, return a 1-by-1 cell array containing the...

alrededor de 5 años hace

Resuelto


Create cell array of numeric arrays
Convert the input to a cell array, but only if necessary. If the input is a numeric array, return a 1-by-1 cell array contain...

alrededor de 5 años hace

Resuelto


Make visible max values
Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

alrededor de 5 años hace

Resuelto


Your favourite city!
Type your favourite city.

alrededor de 5 años hace

Resuelto


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

alrededor de 5 años hace

Resuelto


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

alrededor de 5 años hace

Resuelto


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

alrededor de 5 años hace

Cargar más