Community Profile

Darshan Ramakant Bhat

MathWorks

Last seen: 10ヶ月 前 2017 以来アクティブ

All

バッジを表示

Content Feed

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

5年弱 前

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

5年以上 前

Find out missing number from a vector of 9 elements
You are given a vector of size 9, x = [x1 x2 x3 x4 x5 x6 x7 x8 x9] Elements of x may be randomly selected without repeati...

5年以上 前

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

5年以上 前

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

5年以上 前

Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

5年以上 前

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

5年以上 前

Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

5年以上 前