Solved


Gene Duplication with Sequencing Errors
You are investigating the genome of the bacterium Codex matlabius. A virus that infects C. matlabius is known to insert long, re...

4 months ago

Solved


Caesar Cipher: shift a lowercase string
A Caesar cipher shifts every letter forward through the alphabet by a fixed amount, wrapping around from z back to a. Given a...

4 months ago

Solved


Sum of proper divisors (aliquot sum)
A proper divisor of a positive integer n is any divisor of n except n itself. The aliquot sum is the sum of all proper divisors....

4 months ago

Solved


is the number happy?
test is a given integer number is Happy of not? answer 1 if yes or 0 is no

4 months ago

Solved


Leftovers? Again?!
I am thinking of a positive number X. To determine what number I am thinking of, I will give you two 1xN vectors. The first ve...

4 months ago

Solved


Assignment Problem
Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

4 months ago

Solved


Sorting integers by their digits (Level 3)
This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42811-sorting-integers-by-their-digits-level...

4 months ago

Solved


Index one element in each vector of an array along a given dimension
Functions like min and max can return in their second output argument the index of the element in each vector along a particular...

4 months ago

Solved


return row and column indices given 2 values which define a range
Inspired by problem http://www.mathworks.co.kr/matlabcentral/cody/problems/856-getting-the-indices-from-a-matrice Inputs: - matr...

4 months ago

Solved


expand intervals vol.3
This is the next problem after <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528> and <http://www.mathworks.co.u...

4 months ago

Solved


Matrix Pattern 10

4 months ago

Solved


Matrix Pattern 9

4 months ago

Solved


Matrix Pattern 8

4 months ago

Solved


Matrix Pattern 7

4 months ago

Solved


Matrix Pattern 6

4 months ago

Solved


Matrix Pattern 5

4 months ago

Solved


Matrix Pattern 2

4 months ago

Solved


jogging?
Imagine x-y coordinate system and you are at the origin and your partner is on the x-axis at some small distance (d) away from y...

4 months ago

Solved


List balanced primes
A balanced prime of order is one that equals the average of the primes before it and the primes after it. For example, 79 is ...

4 months ago

Solved


Determine whether a number is a seesaw number
Cody Problem 60957 dealt with balanced primes. In that case, balance was measured in terms of the average of primes around a giv...

4 months ago

Solved


Find the Prime Factors and Divisors of a Number
Given a positive integer n, find its prime factors as well as all of its divisors. Example: n=12 has prime factors [2,2,3] and ...

4 months ago

Solved


Cumulative Count
Given a row vector of integers with repeating values (with all repeating values occuring in a single continuous run), create an ...

4 months ago

Solved


Rooky Towers
You are wandering and as you realise something's off, you find yourself lost in a peculiar place - Over a giant field which is ...

4 months ago

Solved


Express base-10 integers in lazy binary
The binary (or base-2) representations of a number n can be constructed as follows: Step 1: If n = 0, then the binary represent...

4 months ago

Solved


Covering rectangle area of a four-pointed star polygon
Given the four-pointed star polygon formed by the rectangle, with dimensions l1xl2, and four triangles, with height, h, from the...

4 months ago

Solved


Slicing the area of a regular polygon
Given the area, A, of a regular polygon with n sides, each of length s, consider its decomposition in congruent isosceles triang...

4 months ago

Solved


Covering a four-pointed star polygon by rectangles
Given the area, A, of a star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h from their...

4 months ago

Solved


Covering a four-pointed star polygon by circles
Given the area, A, of a star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h from their...

4 months ago

Solved


Covering a 4-pointed star polygon by a circle sector
Given the area, A, of a 4-pointed star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h ...

4 months ago

Load more