3,619 total contributions since 2012

Solved

Logistic map

The sequence defined by x_n = 4*r*x_{n-1}*(1-x_{n-1}) and a given 0 < x_1 < 1 turns each x_n into a polynomial of r. Write a ...

9 months ago

Solved

What score did they give?

Your task in this problem is to figure out the most recent score, |S|, submitted. <<https://upload.wikimedia.org/wikipedia/...

9 months 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!

9 months ago

Solved

Sum of combinations

Input: *X = 40*, *Y = [40 20 10 4]* Output: *Z = [1 0 0 0; 0 2 0 0; 0 1 2 0; 0 1 1 3; 0 1 0 5; 0 0 4 0; 0 0 3 3; 0 0 2 5; 0 ...

9 months ago

Solved

Nodal Voltage of Resistor Ladder Network

* You have a bunch (an even number N) of identical resistors (each R ohms), a good battery (V volts) and a high impedance voltme...

9 months ago

Solved

Britney unfolded

You have a long, narrow strip of paper. You are going to fold this strip of paper length-wise in half, than fold the folded stri...

9 months ago

Solved

Augmented Lagrange Multiplier (ALM) Method

Write a function to find the values of a design variable vector, _x_, that minimizes a scalar objective function, _f_ ( _x_ ), g...

9 months ago

Solved

Writing Error Messages

Well written functions check inputs to make sure the input is valid. The function ErrorCheck takes three arguments: * a - a s...

9 months ago

Solved

Sherlock Holmes: The Spy Problem

A guest at a party is a spy if this person is not known by any other guest, but knows all of them. There is at most one spy at a...

9 months ago

Solved

Say type of roots in quadratic equation

Given the coefficients of a quadratic equation, write a function that gives the output y='RealDifferent' if the roots are real a...

9 months ago

Solved

Word Distance - Sum

Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

9 months ago

Solved

Expand 10^n to Powers of 4

Given an integer n, return the coefficients c = [c_n,c_n-1,...,c_0] Such that 10^n = c_n*4^(n) + c_n-1*4^(n-1...

9 months ago

Solved

Aztec Diamond domino tilings

Consider a Cartesian grid, with verteces at integer x and y values, where every four vertices around a vacant space define a uni...

9 months ago

Solved

Toads and Frogs Puzzle

On a one-dimensional board with n + m + 1 cells, there are n counters in the first n cells representing Toads and m counters in ...

9 months ago

Solved

Probabilities - More brains than luck

This problem is related to <http://it.mathworks.com/matlabcentral/cody/problems/596-more-luck-than-brains Problem 596. More luck...

9 months ago

Solved

Determinate if day D is a date that occurs during Daylight Saving Time in Italy

<https://en.wikipedia.org/wiki/Summer_Time_in_Europe>

9 months ago

Solved

Binary code for an analog signal

Digitization of a signal consists of 3 stages: sampling, quantization and encoding. Sampling convert the analogue signal into...

9 months ago

Solved

Permutation Via Multiplication

Given two numbers a and b, determine if the product ab is a permutation of the digits of a. For example, this is always true for...

9 months ago

Solved

Project Euler 249: Prime Subset Sums

Inspired by Problem 249 of Project Euler. <https://projecteuler.net/problem=249> Let S = {2, 3, 5, ...} be the set of prime ...

9 months ago

Solved

Exponents in Factorials(hard)

This is problem is a harder version of "Problem 44747. Exponents in Factorials". <https://ww2.mathworks.cn/matlabcentral/cody/p...

9 months ago

Solved

Large Sum (inspired by Project Euler 13)

Your function will be provided an arbitrary number of numbers of arbitrary sizes as a cell array of strings. Some numbers will b...

9 months ago

Solved

Differential equation and events

You have to solve the non-linear time variant differential equation: (cos(y)+2)*y''+atan(y)*sin(0.01*t)^2+y*sin(0.5*t)=0 ...

9 months ago

Solved

Pumpkin Pie!

It's time for desert at Thanksgiving. You've all gathered at grandma's house, and she's about to start cutting the pumpkin pie. ...

9 months ago

Solved

Back to basics: adding comments to your code

One of the most useful skills a programmer can develop is the skill — or habit — of writing descriptive comments within/above th...

9 months ago

Solved

Apply Function to Each Field of a Structure Array: Part 2

The builtin <http://www.mathworks.com/help/matlab/ref/structfun.html?=structfun structfun> applies a function handle to each fie...

9 months ago

Solved

Apply Function to Each Field of a Structure Array: Part 1

The builtin <http://www.mathworks.com/help/matlab/ref/structfun.html?=structfun structfun> applies a function handle to each fie...

9 months ago

Solved

Win all the time!

This is a 2-players game. One of them is your algorithm. Your algorithm must win in all games. In this game there are 3 rows...

9 months ago

Solved

Wrecked Angles?

It's time for some simple geometry fun to start off the new year. You will be given the perimeter P and the area A of a recta...

9 months ago

Solved

The other half of the Fibonacci sequence

The <http://mathworld.wolfram.com/FibonacciNumber.html "Fibonacci sequence"> — F = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,...

9 months ago