Resuelto


Compute a sum
Write a function to compute the following sum Although a solution is available for general values of the coefficients, the co...

15 días hace

Resuelto


Pitting corrosion on a metal plate: Count the number of pits
You are given an N x M matrix of _ones_ and _zeros_, which represents an image of a rectangular metal plate taken from the hull ...

15 días hace

Resuelto


Count the number of reaction chains achievable in T mins
This problem is related to Problem <45467>. Let's denote a list of *N* compounds as 1, 2, ..., *N*. You are then given a list...

15 días hace

Resuelto


Text processing - Help Johnny write a letter home from camp
Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more th...

15 días hace

Resuelto


An asteroid and a spacecraft
&#128640 Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian ...

15 días hace

Resuelto


Usage of java.math : N Choose K with unlimited precision
Calculate the binomial coefficient nchoosek with full accuracy. This challenge may use the wonderful word of java.math that allo...

15 días hace

Resuelto


List ways to reach a target sum

15 días hace

Resuelto


Easy Sequences 9: Faithful Pairs
A "faithful number" is a non-prime number that is one less or one more than some prime number but not both. For example, for num...

15 días hace

Resuelto


LASER Tracker - Mirror Distance and Angle
Determine the mirror's distance and relative angle to the LASER Tracker given the distances to a reference SMR (Spherical Mounte...

15 días hace

Resuelto


Separate even from odd numbers in a vector - without loops
*Without using loops*, rearrange a vector of integers such that the odd numbers appear at the beginning, and even numbers at the...

15 días hace

Resuelto


Create matrix with Gray code
Output "g" should be a matrix of class double, with <http://en.wikipedia.org/wiki/Gray_code Gray reflected binary code>. Inpu...

15 días hace

Resuelto


Rotate Matrix Clockwise (45 Degree)
Matrix (3x3 only) rotation clockwise: 2 inputs: x matrix and n times. output: y matrix with n x 45 degree rotation.

15 días hace

Resuelto


Game of Nim
The Game of Nim is a famous studied 2 player strategy game. <http://en.wikipedia.org/wiki/Nim> There are 3 heaps, and you...

15 días hace

Resuelto


Generate a vector which contains a pyramid pattern (★★★★)
Generate a vector that contains terms that follows a pyramid pattern up to the nth row: 1 2 2 3 3 3 4 4 4 4 ...

15 días hace

Resuelto


Trace the path of a harmful chemical in an ecological network
An ecological network consists of the cycles of nature, such as the water cycle, the carbon cycle, the oxygen cycle, etc. Due to...

15 días hace

Resuelto


Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

15 días hace

Resuelto


Dispatch and collect
Write a function that dispatches the single argument _x_ to multiple function handles (varargin) and concatenates vertically the...

15 días hace

Resuelto


Cricket - Career Batting Statistics
Given a vector s of strings representing a batter's individual innings scores, return their career statistics as a 4-element (nu...

15 días hace

Resuelto


Sequence Vectorization - I
Given a Natural number N, return the sequence - [1 1 2 1 2 3 1 2 3 4 ... 1 2 3 ... N-3 N-2 N-1 N] i.e. the horizontal concatenat...

15 días hace

Resuelto


Rotate a matrix without using rot90
rotate the input square matrix by certain degrees (e.g. 270 or 450 etc.) without using rot90 or flip function. its an extension...

15 días hace

Resuelto


Guess the Coefficients!
Given a polynomial p known to have positive integer coefficients, deduce the values of the coefficients. For example: p = ...

15 días hace

Resuelto


Solve an ODE: draining tank
Write a function to compute the time to drain a cylindrical tank of diameter from an initial level to a level . The outflow oc...

15 días hace

Resuelto


Fast 1-D Convolution (valid shape)
Pursuant to the first problem in the <http://www.mathworks.com/matlabcentral/cody/?term=Fast+1-D+Convolution fast 1-D convolutio...

15 días hace

Resuelto


Compute the sum of reciprocals of quadratics
Write a function to compute the following sum: See also Cody Problem 46000.

15 días hace

Resuelto


Vector multiplication
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

15 días hace

Resuelto


Change the sign
Given a matrix x, return one with each diagonal element replaced by its absolute value and the largest element in absolute value...

15 días hace

Resuelto


ZigZag - 05
Given a matrix, print all its elements in the alpha form. For example - a=[16 2 3 13 5 11 10 8 ...

15 días hace

Resuelto


Logic 12

15 días hace

Resuelto


Miles to go before I sleep
Recently, my car's odometer passed 56789. Given an odometer reading, output how many miles need to be driven to get the next mi...

15 días hace

Cargar más