83 total contributions since 2015

Graduate student of M.Sc. electrical engineering at Universidad del Norte in Barranquilla, Colombia.

Solved

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...

3 månader ago

Solved

Birthday cake

It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance bet...

3 månader ago

Solved

Find the numeric mean of the prime numbers in a matrix.

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

ungefär ett år ago

Solved

Just take it easy for a second or two!

Your code needs to take 'exactly' one second or 'exactly' two seconds to run (depending on the input) — accurate to ±0.5 millise...

ungefär ett år ago

Solved

Wait a second!

Your code needs to take 'exactly' one second to run — accurate to ±0.5 milliseconds. The input will be the number of millis...

ungefär ett år ago

Solved

Pi Digit Probability

Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

ungefär ett år ago

Solved

Parse me a Lisp

*Description* In Lisp and its variants, function calls are done using parenthesis where the first item in the parenthesis is ...

ungefär ett år ago

Solved

Tautology

Check if the given expression is always true. For example, the sentence '~(A & B) == (~A | ~B)' is always true. Chara...

ungefär ett år ago

Solved

Test your luck!

This problem is designed to test your luck, and therefore the contents of your function are irrelevant. In order to do so, the t...

ungefär ett år ago

Solved

Find the nearest prime number

Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

ungefär ett år ago

Solved

Polarisation

You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...

ungefär ett år ago

Solved

Octoberfest festival

A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

ungefär ett år ago

Solved

I Plead the Fifth

Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

ungefär ett år ago

Solved

The Glass Half Full

Identical glasses are placed in a triangular tower structure, such that the top level (L = 1) comprises one glass, the next leve...

ungefär ett år ago

Solved

5 Prime Numbers

Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

ungefär ett år ago

Solved

Van Eck's Sequence's nth member

Return the Van Eck's Sequence's nth member. For detailed info : <http://oeis.org/A181391 OEIS link> and <https://www.theguard...

ungefär ett år ago

Solved

Basic electricity in a dry situation

⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ &#...

ungefär ett år ago

Problem

Test your luck!

This problem is designed to test your luck, and therefore the contents of your function are irrelevant. In order to do so, the t...

ungefär ett år ago | 0

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...

ungefär ett år ago

Solved

Group-wise Euclidean distance

*Input*: * *x* —— An array of size *n-by-d*, where each row vector denotes a point in a d-dimensional space; * *g* —— A gro...

ungefär ett år ago

Solved

An asteroid and a spacecraft

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

ungefär ett år ago

Solved

Acid and water

⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...

ungefär ett år ago

Solved

Recaman Sequence - III

I want to create a Recaman sequence where the nth number will be 1. So from which integer should I start the Recaman sequence? ...

ungefär ett år ago

Solved

Pandigital Multiples of 11 (based on Project Euler 491)

A "Pandigital number of order X" is one that contains all of the numbers from 0 to X, but with no leading zeroes. If X>9, the c...

ungefär ett år ago

Solved

Pair Primes

Let's define pair primes as follow; * *For 2 digits numbers:* 11 and 17 are pair primes because both of them are 2 digits pri...

ungefär ett år ago

Solved

Five-dimensional maze

*Description* The traditional maze is 2-dimensional: the navigator can move in the positive or negative directions along two ...

ungefär ett år ago

Solved

Is this a valid Tic Tac Toe State?

For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

ungefär ett år ago

Solved

Is this is a Tic Tac Toe X Win?

For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

ungefär ett år ago

Solved

Give the Shortest Path Through The Maze

*Description* The purpose of this problem is to give the shortest path through a maze. The maze will be provided in a codifie...

ungefär ett år ago

Solved

Five steps to enlightenment

This problem asks you to identify valid variations of the famous <https://en.wikipedia.org/wiki/Sum_and_Product_Puzzle sum and p...

mer än ett år ago