Solved


Return fibonacci sequence do not use loop and condition version 3
Calculate the nth Fibonacci number,return sequence Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... ...

7 years ago

Solved


Compute the intersect point of line and plan
Compute the intersect point of line and plan. eg. line AB, the coordinate of A is (1,2,3) the coordinate of B is (-4,-5,-6...

7 years ago

Solved


Seperate array to small section according to its index position
Given a integer n, we can generate a sequence [0,1,2,3,4,..., 2^n-1], then we separate it to two sequence according to their ind...

7 years ago

Solved


Project Euler: Problem 14 Longest Collatz sequence(harder version)
This problem is a harder version of "Problem 44448. Project Euler: Problem 14 Longest Collatz sequence", because of time limits....

7 years ago

Solved


Find the right number make the equation
Given positive integer number n, find the right positive integer number a, b , so that (1) sqrt(a + n * b) is a positive inte...

7 years ago

Solved


Big Integer Sqrt
You will be given a big integer, you should return the square root of it. input: '16' output: '4' have fun!

7 years ago

Solved


Make an anonymous function that has variable output
Make a anonymous function that has variable output. f = @(x)... the following equation→equation(s) as followed has(ve) ...

7 years ago

Solved


PACMAT 09 - Awesome Tunnelling Ghosts, Equal Speed, 20 Lives, Game Download
The Classic PACMAN game brought to Cody. PACMAT requires clearing all the Yellow Dots. Twenty lives are available. Adjacent G...

7 years ago

Solved


PACMAT 08 - Awesome Tunneling Ghosts, 2X Speed, 6 Lives, Game Download
The Classic PACMAN game brought to Cody. PACMAT requires clearing all the Yellow Dots. PACMAT moves at 2X Ghost speed. Six li...

7 years ago

Solved


PACMAT 05 - Optimized Ghosts, PACMAT increasing speed, 12 Lives
The Classic PACMAN game brought to Cody. PACMAT requires clearing the Yellow Dots while avoiding the wandering ghosts in 12 l...

7 years ago

Solved


PACMAT 04 - Optimized Ghosts, Equal Speed, 10 Lives
The Classic PACMAN game brought to Cody. PACMAT requires clearing at least 130 Yellow Dots while avoiding the wandering ghost...

7 years ago

Solved


PACMAT - G03 Ghosts use minimum path to PACMAT; 3 Lives
The Classic PACMAN game brought to Cody. PACMAT requires clearing the board of Yellow Dots while not bumping into the wanderi...

7 years ago

Solved


PACMAT 06 - Optimized Ghosts, Equal Speed, Inf Lives; Interactive Download
The Classic PACMAN game brought to Cody. PACMAT requires clearing all the Yellow Dots. Inf lives are available. Adjacent Ghos...

7 years ago

Solved


PACMAT 07 - Optimized Ghosts, PAC 2X Ghost Speed, 4 Lives; Interactive Download
The Classic PACMAN game brought to Cody. PACMAT requires clearing all the Yellow Dots. PACMAT moves at 2X Ghost Speed, Four l...

7 years ago

Solved


Television Screen Dimensions
Given a width to height ratio of a TV screen given as _w_ and _h_ as well as the diagonal length of the television _l_, return t...

7 years ago

Solved


Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...

7 years ago

Solved


Matrix of Multiplication Facts
This is James's daughter again, sneaking into his Cody account. Thanks to your help in my math class last year, I did great! B...

7 years ago

Solved


Mean and standard deviation of times in string
Input(t) - cell of strings with times in format 'min:sec.ms' Output([m, s]) - two strings with mean and standard deviation wi...

7 years ago

Solved


Split a given string from the first instance of a given character
A simple operation to split a given string into two substrings at the point where the desired character is first found. e.g. ...

7 years ago

Solved


Block average ignoring NaN values
Given a matrix, calculate the block average of each disjoint sub-matrix while ignoring *NaN* values. Assume that the size of the...

7 years ago

Solved


Matrix to 3-Column Matrix
Consider a matrix *A* such as A = [1 2 3 3 4 5 6; 2 3 4 5 6 7 8]; Can you convert this matrix to a three-column ...

7 years ago

Solved


PONG 001: Player vs Wall, 4 Lives, Interactive download
Variation of the Original Classic PONG game brought to Cody. Attempt to keep the ball alive against a Wall. The ball speeds u...

7 years ago

Solved


PACMAT - Ghosts maximize unique locations; 3 Lives
The Classic PACMAN game brought to Cody. PACMAT Ghosts Random requires clearing the board of Yellow Dots while not bumping in...

7 years ago

Solved


Rubik's Mini Cube: Solve Randomized Cube in 11 Moves or Less; Score is by Time (msec)
The Challenge is to Near or Optimally Solve a thoroughly scrambled Mini-Rubik's Cube(2x2x2). Any Mini-Cube can be solved in 1...

7 years ago

Solved


Approximate the inverse tangent by power series
Given values b (where abs(b)<=1) and n (polynomial order), write a function that calculates atan(b) by using power series.

7 years ago

Solved


Tiles Contest: Perfect Solutions for Large Unique Tile Boards
*Tiles Contest:* The Large Unique Boards/Tiles that perfectly solve (50x50) Return Perfect solutions for both boards. Scoring...

7 years ago

Solved


Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

7 years ago

Solved


geometric progression
I've modified my <http://uk.mathworks.com/matlabcentral/cody/problems/2800-arithmetic-progression previous program> so that it n...

7 years ago

Solved


arithmetic progression
I've written a program to generate the first few terms of <https://en.wikipedia.org/wiki/Arithmetic_progression arithmetic progr...

7 years ago

Solved


The sliding puzzle: 3D
This is an extension of <https://www.mathworks.com/matlabcentral/cody/problems/42842 problem 42842>. In this case, the puzzle is...

7 years ago

Load more