Resuelto

Probability of red tulips

I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

10 meses hace

Resuelto

"Find out the best cricket"

This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...

10 meses hace

Resuelto

Matlab Basics II - Unit Conversion

Write a function that converts Kg to lbs, returns the answer to the nearest 1/100th of a pound

10 meses hace

Resuelto

Power The Product

EXAMPLE: INPUT x=10 & y=10 OUTPUT z=1000000 or, INPUT x=2 & y=3 OUTPUT z= 216 you just need to calculate the product first...

10 meses hace

Resuelto

CARDS PROBLEM

Read my mind and tell me the card number that I have now in my hands.

10 meses hace

Resuelto

ranch area?

Your friend has a ranch with four distinct boundary lines. Three boundary lines are ideal straight roads: (1) North Club Road, (...

10 meses hace

Resuelto

Vector LCM

* Find Least Common Multiple of a given vector. * Need general solution as the test suite will be expanded. * Function Templa...

10 meses hace

Resuelto

Simple spirometer - find your lung capacity from the number and size of soap bubbles in one breath

Assumed that each bubble has practically the same diameter d. Given total number n of bubbles. Find volume v of breath.

10 meses hace

Resuelto

Minimum possible M of the maximum side of a triangle of given area A.

Suppose a triangle has area A. Suppose it has three sides S1, S2, and S3. Suppose M = max([S1 S2 S3]). What is the minimum po...

10 meses hace

Resuelto

Create One Large Eye of size N x N Quickly?

*<http://en.wikipedia.org/wiki/Aye_(yes) Aye !!!>*

10 meses hace

Resuelto

commutative?

Given the handle to a binary function that takes two ordinary numbers, test if the function is commutative.

10 meses hace

Resuelto

Derivative of polynomial

Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

10 meses hace

Resuelto

Count decimal digits of a number

* Given an integer number you have to return the number of its digits. * For example 248 has 3 digits and 1589 has 4 digits ...

10 meses hace

Resuelto

Find the square of the sum of the digits of a number

If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

10 meses hace

Resuelto

Palindrome numbers

Find the palindrome numbers (two or more digits) from 1 to n where n is the number passed to the function.

10 meses hace

Resuelto

Triangle Numbers (★★)

(copy of problem 5) Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3...

10 meses hace

Resuelto

Prime number check (★★)

One way to see if a number x is prime is to compute the remainders obtained when dividing x by all integers from 2 to √(x). If x...

10 meses hace

Resuelto

Mo money, mo math #2! (★★★)

(adapted from Prob 9 Cody team) You have a matrix for which each row is a person and the columns represent the number of quar...

10 meses hace

Resuelto

Mo money, mo math 1! (★★★)

(adapted from Prob 9 Cody team) You have a vector where the elements represent the number of $20 bills, $10 bills, $5 bills, ...

10 meses hace

Resuelto

Reindex a vector

You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...

10 meses hace

Resuelto

Reindex a vector (★★)

(copy of Prob. 676) You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX h...

10 meses hace

Resuelto

Variance computation (★)

Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

10 meses hace

Resuelto

Select every other element of a vector (★★)

(copy of prob 6) Write a function which returns every other element of the vector passed in. That is, it returns the all odd-...

10 meses hace

Resuelto

Create a vector of n alternating ones and zeros (★★)

Given n, your output should be a vector y of numbers such that the first number is 1 and the numbers following it alternate betw...

10 meses hace

Resuelto

Create a vector with n repeated values of a number x (★★)

If x=3 and n=7 then the vector y would be y=[3 3 3 3 3 3 3]

10 meses hace

Resuelto

Element-wise vector product (★)

Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

10 meses hace

Resuelto

Create times-tables (★★★)

(copy of prob 33) At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 ti...

10 meses hace

Resuelto

Doubling elements in a vector (★★)

(copy of prob. 1024) Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] t...

10 meses hace

Resuelto

Vector of digits (★★)

Given a positive integer x, construct a vector y with all the digits of x in the order of appearance in x. Thus, if x = 172...

10 meses hace