Gelöst


Max Sum That You Can Get Of 2 Numbers given variable input
Given variable input length,combine 2 numbers from and output maximum sum the combinations can generate Example x = 3; y = 5;...

fast 10 Jahre vor

Gelöst


Leap year or Not
Check if a given year is Leap year or not.

fast 10 Jahre vor

Gelöst


Convert Miles To Kilometers
Given input in miles, output into kilometers

fast 10 Jahre vor

Gelöst


This is just like your weight :)
Imagine your weight as a sawtooth wave appended with a slope It varies yet the trend is increasing :) Decode the values throug...

fast 10 Jahre vor

Gelöst


Skip and Add
Given x, and y From 1 to x, add every y interval

fast 10 Jahre vor

Gelöst


Bracket contents of type {}
Return all bracket contents from a given string ({} type). Example: 'x = rho*x{-1} + (1-rho)*y{+1}' should yield a cell of '-...

fast 10 Jahre vor

Gelöst


Reverse digits of a number
Reverse digits of a number. For example, return *321* for the input *123* . The left-hand zeros can be discarded. For exam...

fast 10 Jahre vor

Gelöst


Primes Checker
Given variable inputs Check if they are prime numbers

fast 10 Jahre vor

Gelöst


Calculate BMI
BMI = (weight_in_lbs * 703) / (height_in_inches^2) Inputs are in kg and cm

fast 10 Jahre vor

Gelöst


String revert
Revert all words in a sting x for example, if x = 'this is a sentence' then y should be 'sentence a is this'

fast 10 Jahre vor

Gelöst


Magnitude of a vector
Given a vector x, what is its magnitude?

fast 10 Jahre vor

Gelöst


Check if two matrices are permutations of each other
Your function should return true for the elements of one matrix is the permutation of the other matrix: x = [1 2 3; 4 5 6; ...

fast 10 Jahre vor

Gelöst


ADD TWO NUMBERS
To add two numbers a and b, then store in y

fast 10 Jahre vor

Gelöst


Given X and Y, Get the Displacement Travelled
Given startX, start Y, endX and endY Get the displacement travelled %x = [startX endX] %y = [startY endY] x = [0 3]; y = [0...

fast 10 Jahre vor

Gelöst


Transpose Matrix Without Using Built-in Matlab Function
Transpose Matrix Without Using Built-in Matlab Function Example a = [1;2;3] out = [1 2 3]

fast 10 Jahre vor

Gelöst


Multiply all elements of vector but not me
me = 1 Just a freebie Good luck :)

fast 10 Jahre vor

Gelöst


Back to Basics
Dot product of vectors. Given two vectors A and B, calculate their dot product. A=[1 2 3]; B=[3 2 1]; C=10;

fast 10 Jahre vor

Gelöst


Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

fast 10 Jahre vor

Gelöst


Rutgers Homework 3 Problem 1
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

fast 10 Jahre vor

Gelöst


Project Euler: Problem 14, Longest Collatz sequence
The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) U...

fast 10 Jahre vor

Gelöst


Halder function
Find the halder function value of a number

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


multiply an array by its position number
You have given an array. Multiply an array by its position number

fast 10 Jahre vor

Gelöst


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

fast 10 Jahre vor

Mehr laden