Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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'

casi 10 años hace

Resuelto


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;

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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]

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


this is a test problem
this is a anniversary test problem

casi 10 años hace

Resuelto


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

casi 10 años hace

Cargar más