A résolu


Calculate determinent
Calculate determinent of given matrix A=[2 4;3 5]; function(A) Output should be -2

presque 10 ans il y a

A résolu


Derive Me Crazy
Given a polynomial, output its derivative. Example: input = [1 0 0] % x^2 output = [2 0] % 2x

presque 10 ans il y a

A résolu


Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

presque 10 ans il y a

A résolu


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

presque 10 ans il y a

A résolu


Print true if (2)
There are 0. a=[1 2 3 4 0]; b=[1 1 1 1 1]; function(a) is true, and function(b) is false.

presque 10 ans il y a

A résolu


Money money money
There's a group of men called 5/6. It's like when you borrow $5, you need to pay him $6 Try to code, 5/6 people haha

presque 10 ans il y a

A résolu


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

presque 10 ans il y a

A résolu


Non trivial identities - identity handle
Return x by handling the identity function.

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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'

presque 10 ans il y a

A résolu


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;

presque 10 ans il y a

A résolu


Non trivial identities - linear system
Return x by solving a linear system.

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


X plus binary inverted x
Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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]

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

presque 10 ans il y a

A résolu


Odd row
Create a row 'y' with odd numbers where the range of numbers is given by 'x' and the space between them by 'm'. The first number...

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


Return the circumference and area of a circle with radius r
Write a function to calculate the circumference and area of a circle with radius r.

presque 10 ans il y a

A résolu


Rutgers Homework 3 Problem 3
Please solve homework 3 problem 3.

presque 10 ans il y a

A résolu


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

presque 10 ans il y a

A résolu


this is a test problem
this is a anniversary test problem

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

Charger plus