Resuelto


Sum of Elements Above the Main Diagonal of a Square Matrix
Given a square matrix as input, write a function that returns the sum of all elements above the main diagonal. If the input mat...

9 días hace

Resuelto


Multiply binary numbers
Write a function to multiply two binary numbers input as strings. For example, input values of ‘1011’ and ‘101’ should give ’110...

9 días hace

Resuelto


Pick the die most likely to win
After discussing Rock, Paper, Scissors, Lizard, Spock in The Simpsons and their Mathematical Secrets, Simon Singh writes that in...

9 días hace

Resuelto


Compute a sum involving the totient over divisors of a number
Write a function to compute the following sum: where is the totient function. The sum is computed over the divisors of (inc...

9 días hace

Resuelto


Solve an ODE: equation C
Write a function to solve the following ordinary differential equation: with and . The parameter is a constant. The functi...

9 días hace

Resuelto


Eliminate redundant numbers in text
Occasionally someone might write text such as Briefly explain one (1) common problem that can result from the constant use of ...

9 días hace

Resuelto


List the titles of Cody problems
Cody has several ways to list problems, but I have not yet found an easy way to list them by their numbers. Listing by date crea...

9 días hace

Resuelto


Solve an ODE: equation B

9 días hace

Resuelto


Solve an ODE: equation A
Write a function to solve the following ordinary differential equation: with and . The function should return the values of...

9 días hace

Resuelto


Add 100

9 días hace

Resuelto


Solve an ODE: diffusion problem 2

9 días hace

Resuelto


Solve an ODE: diffusion problem 1

10 días hace

Resuelto


Solve an ODE: separable equation
Solve the following ordinary differential equation: with the initial condition .The test suite will ask for the value of the ...

10 días hace

Resuelto


Compute the Euler totient function

10 días hace

Resuelto


List ways to reach a target sum

10 días hace

Resuelto


Find the nth Fibbinary number

10 días hace

Cargar más