Risolto


Path of least resistance
Find the length of the shortest path through the matrix from the top left to bottom right corner. You may move right, down, or d...

oltre 4 anni fa

Risolto


Minimal Path - 01
Given a matrix, find the minimal path sum from the top left to the bottom right by only moving to the right and down. For exa...

oltre 4 anni fa

Problema


Minimal Path - 01
Given a matrix, find the minimal path sum from the top left to the bottom right by only moving to the right and down. For exa...

oltre 4 anni fa | 0 | 12 risolutori

Risolto


Which way to go?
Given an m*n grid, How many ways are there to go from upper left corner to the lower right one? You can only move right...

oltre 4 anni fa

Risolto


King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

oltre 4 anni fa

Problema


King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

oltre 4 anni fa | 2 | 35 risolutori

Risolto


The Tortoise and the Hare - 02
Previous problem <http://mathworks.com/ 45425> Suppose in an infinitely long line, the tortoise is standing in position 0. ...

oltre 4 anni fa

Problema


The Tortoise and the Hare - 02
Previous problem <http://mathworks.com/ 45425> Suppose in an infinitely long line, the tortoise is standing in position 0. ...

oltre 4 anni fa | 2 | 11 risolutori

Risolto


The Tortoise and the Hare - 01
Suppose in an infinitely long line, the hare is standing in position 0. From that place, it can jump either in the +ve direct...

oltre 4 anni fa

Problema


The Tortoise and the Hare - 01
Suppose in an infinitely long line, the hare is standing in position 0. From that place, it can jump either in the +ve direct...

oltre 4 anni fa | 2 | 27 risolutori

Risolto


Amicable pair
Amicable numbers are two different numbers such that the sum of the proper divisors of each is equal to the other number. For...

oltre 4 anni fa

Problema


Amicable pair
Amicable numbers are two different numbers such that the sum of the proper divisors of each is equal to the other number. For...

oltre 4 anni fa | 2 | 6 risolutori

Risolto


Determina el número de cifras de un número
Crea una función que te devuelva el número de cifras de un número. Algunos ejemplos para ayudarte serían: El número 125 tie...

oltre 4 anni fa

Risolto


Bernoulli's Triangle
Generate the bernoulli's triangle upto nth row. <https://mathworld.wolfram.com/BernoulliTriangle.html>

oltre 4 anni fa

Problema


Bernoulli's Triangle
Generate the bernoulli's triangle upto nth row. <https://mathworld.wolfram.com/BernoulliTriangle.html>

oltre 4 anni fa | 2 | 17 risolutori

Risolto


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

oltre 4 anni fa

Risolto


Minimum Sum thru a Lower Triangle
This Challenge is to find the minimum cumulative sum that traverses from row-1 thru row-N via vertical/diagonal adjacent element...

oltre 4 anni fa

Risolto


Breaking Out of the Matrix
Do you want to take the Red Pill, or the Blue Pill? If you take the Blue Pill, you will simply pass along to the next problem...

oltre 4 anni fa

Risolto


Coin Distribution - 02
Prev prob <http://mathworks.com/ 45385> Given a set of coins and an amount, find out how many ways the amount can be made usi...

oltre 4 anni fa

Problema


Coin Distribution - 02
Prev prob <http://mathworks.com/ 45385> Given a set of coins and an amount, find out how many ways the amount can be made usi...

oltre 4 anni fa | 3 | 17 risolutori

Risolto


Abelian Sandpile - 02
Generate a matrix like Abelian Sandpile where the four corner element is n. For example, n=4 [4 3 2 1 ...

oltre 4 anni fa

Problema


Abelian Sandpile - 02
Generate a matrix like Abelian Sandpile where the four corner element is n. For example, n=4 [4 3 2 1 ...

oltre 4 anni fa | 0 | 17 risolutori

Risolto


Abelian Sandpile - 01
Generate a matrix like abelian sandpile where the center of the matrix is n. For example, n=3 out=[0 0 0 0 ...

oltre 4 anni fa

Problema


Abelian Sandpile - 01
Generate a matrix like abelian sandpile where the center of the matrix is n. For example, n=3 out=[0 0 0 0 ...

oltre 4 anni fa | 1 | 15 risolutori

Risolto


En passant - 01
This is white's turn. The player moves his pawn. The pawn's previous and current positions are given. Determine whether th...

oltre 4 anni fa

Problema


En passant - 01
This is white's turn. The player moves his pawn. The pawn's previous and current positions are given. Determine whether th...

oltre 4 anni fa | 1 | 15 risolutori

Risolto


Fault in our Stars - 02
Create a window pattern with h-horizontal bars and v-vertical bars. For example, for h=4,v=4 '**********' '* ...

oltre 4 anni fa

Problema


Fault in our Stars - 02
Create a window pattern with h-horizontal bars and v-vertical bars. For example, for h=4,v=4 '**********' '* ...

oltre 4 anni fa | 2 | 12 risolutori

Risolto


all possible subsets of set
Given a vector, return all possible subsets of the vector in a cell array. Properties of basic set theory is assumed to be valid...

oltre 4 anni fa

Risolto


Sieve of Eratosthenes
Find the nth lucky prime number. <https://planetmath.org/luckyprime> can u find a way for large n?

oltre 4 anni fa

Carica altro