Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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.

mehr als 9 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

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


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

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


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


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

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


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

fast 10 Jahre vor

Gelöst


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

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


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


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


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

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


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


this is a test problem
this is a anniversary test problem

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

Mehr laden