Solved

Percentage profit:5: Cumulative Interest
If a bank is giving r% yearly cumulative interest for deposit, how much profit we can get by keeping x amount of money for n mon...

11 mesi ago

Solved

Matrix Pattern 8

11 mesi ago

Solved

How many complete pizzas (number 2)
x is a vector with numbers of pizza slices. A corresponding vector n indicates in how many slices the pizza slices of x were cut...

11 mesi ago

Solved

Recursive Standard Deviation
When you have a large set of data, it can be resource consuming to calculate standard deviation at every step. So why not calcul...

11 mesi ago

Solved

Matrix diagonalization
You will be given Two matrices A and B. Return 1 if B is the diagonal matrix of A, 0 otherwise

11 mesi ago

Solved

Minimal cost
A power house, P, is on one bank of a straight river W meters wide, and a factory, F, is on the opposite bank L meters downstr...

11 mesi ago

Solved

Slicing the cube
A bored matlab enthusiast has a cube with volume n^3. He decides to paint the entire surface of the cube red. Then, with slices...

11 mesi ago

Solved

Grid traversal
Given a line defined by (x1,y1) & (x2,y2),return the number of squares that the line crosses on the grid (a square is 1x1). ...

11 mesi ago

Solved

Filter British English into American English
Given a sentence written with British spelling, return the sentence with the offending word(s) replaced with the American spelli...

11 mesi ago

Solved

Find the first N zeros of the 666 function
Using the following definition of the 666 function for this problem: _f(n)=sin('nnn')-cos(n*n*n)_, write a function that returns...

11 mesi ago

Solved

Matrix Pattern 6

11 mesi ago

Solved

Matrix Pattern 4

11 mesi ago

Solved

Find the Area of a Polygon
Consider 2-D geometry and assume that the points are given in form of rows of a matrix. Find the area of polygon enclosed by the...

11 mesi ago

Solved

Find elements of set A those are not in set B
Given two sets of data A and B. Find elements of A those are not in set B. ...

11 mesi ago

Solved

Spiral Matrix
for a given integer n>=3, generate a matrix of nxn such that the value n^2 is at bottom left and its decreasing towards center ...

11 mesi ago

Solved

poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
This problem is a poll (and a little bit of "white hat hacktivism" as well) regarding Cody users sentiment about the use of rege...

11 mesi ago

Solved

Low level NaN
* I have a dataset. Columns represents different variables. * A variable may start with NaN or any double type number. * If i...

11 mesi ago

Solved

Convert String to Morse Code
Convert a given string to international <http://en.wikipedia.org/wiki/Morse_code Morse Code> * Strings will only have [A-z], ...

11 mesi ago

Solved

rectangle in circle
In the figure below, the rectangle at the corner measures a cm x b cm. What is the radius of the circle in cm? <<http://www....

11 mesi ago

Solved

Airline Ticket Mod7 Checksum
There are 13 digits in an airline ticket number. If an airline ticket number is valid, the 13th digit should be the remainder of...

11 mesi ago

Solved

Get the elements of diagonal and antidiagonal for any m-by-n matrix (★★★★)
(copy of prob. 859) In this problem you must submit a solution which returns the diagonal and anti-diagonal elements without ...

11 mesi ago

Solved

Expand a term
Given a term, as a string, expand it. e. g. f = '2(x + y)';

11 mesi ago

Solved

Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

11 mesi ago

Solved

Last Digit of fibonacci number

11 mesi ago

Solved

Replace values out of an interval with the lower or upper values
For a vector or matrix X and an interval [n1,n2], the function replace every element of x inferior to n1 by n1, and every elemen...

11 mesi ago

Solved

Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

11 mesi ago

Solved

Which way to go?
Given an m*n grid, How many ways are there to go from upper left corner to the lower right one? You can only move right...

11 mesi ago

Solved

Simple date to serial no. conversion
Convert a date string to a serial date number. For example if you take x='19-May-2001' then the result is 730990 x...

11 mesi ago

Solved

Rule of mixtures (composites) - lower bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

11 mesi ago

Solved

Rule of mixtures (composites) - upper bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

11 mesi ago