解決済み

Recaman Sequence - II

Take an arbitrary starting point as input and create Recaman Sequence. Then find the 1, return its index. For example: if n =...

2年弱 前

解決済み

Sums of Distinct Powers

You will be given three numbers: base, nstart, and nend. Write a MATLAB script that will compute the sum of a sequence of both ...

2年弱 前

解決済み

The 5th Root

Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

2年弱 前

解決済み

Acid and water

Assume that there is a 100 liter tank. It is initially filled with just distilled water. It is continuously drained at R...

2年弱 前

解決済み

Number of Even Elements in Fibonacci Sequence

Find how many even fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

2年弱 前

解決済み

5th Time's a Charm

Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

2年弱 前

解決済み

An asteroid and a spacecraft

Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian coordinates...

2年弱 前

解決済み

Make a run-length companion vector

Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

2年弱 前

解決済み

Juggling

There is a notation system for <http://en.wikipedia.org/wiki/Juggling jugglers> called <http://en.wikipedia.org/wiki/Siteswap si...

2年弱 前

解決済み

Math with Roman Numerals

Given a function R within (+,-,*,/) and two Roman numerals a & b, compute aRb in Roman numerals.

2年弱 前

解決済み

Equidistant numbers containing certain value in an interval

Given a lower and upper bound of an interval, distance between numbers, and one particular number from that interval, create an ...

2年弱 前

解決済み

Code breaker, Part II: Operation Orthos

You have been tasked with decoding a several batches of coded messages that have been intercepted. Based on previous intell...

2年弱 前

解決済み

Basic commands - Least common multiple

Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

2年弱 前

解決済み

Implement a ROT13 cipher

Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

2年弱 前

解決済み

Flag largest magnitude swings as they occur

You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

2年弱 前

解決済み

Find the biggest empty box

You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

2年弱 前

解決済み

Simple Robotics 2 - End effector attitude

Given a structure as input to your function with the following fields: * robot.links(L1,L2,L3) * robot.jointangles(alfa1,alfa2...

2年弱 前

解決済み

Prime Sequences: AP-k Minimum Final Value

Welcome to Fun with Primes. Today we will find the Minimum Final Value AP-k sequences for n_max=3:12 given the primorial and kno...

2年弱 前

解決済み

Who have the chance?

Obtain a free 10 score in cody, if you have a chance don't change anything if you want to try or do what you can do to gain for ...

2年弱 前

解決済み

Code breaker, Part I: Operation Phoenix

You have been tasked with decoding a set of coded messages that have been intercepted. Based on previous intelligence that ...

2年弱 前

解決済み

Seemingly impossible problem

This is a _seemingly_ 'impossible' problem, because variously your function, "impossibleFn", must return an output of either 1 o...

2年弱 前

解決済み

Make one vector from two others

You are given two vectors of equal length. Your task is to create a MATLAB script that will repeat all of the values in the fir...

2年弱 前

解決済み

Rewrite setdiff to account for non-unique values

Setdiff(a,b) is a function that will remove all values of b from a. Sometimes, you need this function to do a little bit extra,...

2年弱 前

解決済み

Find the index of the lowest number in a matrix

Take a matrix, and find the [row cal] index of the lowest number

2年弱 前

解決済み

Matrix element wise multiplication

Take two incoming vectors, and multiply them element wise

2年弱 前