Problema


Express numbers as the sum of a prime, a square, and a cube
While traveling on an interstate highway, I noticed a sign that gave distances to three places. The distances were 3, 8, and 9 m...

circa un mese fa | 2 | 4 risolutori

Problema


Solve an ODE: Ekman spiral on a solid surface
Problem Write a function to solve for and as a function of in this system of ordinary differential equations: where , ...

circa un mese fa | 2 | 2 risolutori

Problema


Find the minimum element coprime to the rest in a set of 10 consecutive integers
In this video, Dr Barker argued that a set of 10 consecutive integers must have at least one integer coprime to the rest. For ex...

circa un mese fa | 1 | 5 risolutori

Risolto


Write a code to implement the improved Euler's method to integrate a simple function
Euler's method approximates the solution to a differential equation as where . It's possible to improve on Euler's method by ...

circa 2 mesi fa

Risolto


Write a code to implement Euler's method to integrate a simple function
Euler's method approximates the solution to a differential equation as where . The challenge is to write a code that can take...

circa 2 mesi fa

Risolto


Creating a matrix by taking shifted copies of a given vector v as columns
This problem is the same as the problem 761 except that here we are testing it for any given vector ; a row or column vector. Th...

circa 2 mesi fa

Risolto


Průměr z výběrového souboru
Napište funkci, která vrátí průměr z hodnot vektoru data. Např data = [1, 2, 3, 4, 5, 6, 7, 8, 9] je prumer = 5.

circa 2 mesi fa

Problema


Update course numbers and abbreviations
Suppose that the educational institution where you teach purchases new software to handle many essential functions, including co...

2 mesi fa | 1 | 5 risolutori

Risolto


Swap between rows
The idea is to swap between second and second last row Ex = [1 2 3 4 5; 5 4 3 2 1; 1 2 3 4 5; 1 2 3 4 5; ...

2 mesi fa

Risolto


Swap between first and last column
The idea is to swap between first and last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 ...

2 mesi fa

Risolto


Swap between first and last
The idea is to swap between first and last row Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

2 mesi fa

Risolto


Remove a specific character with another
Remove any (-) dash sign with (_) underscore Ex = 'The-Journey-of-thoudsands-miles-starts-with-a-single-step' y = 'The_Jour...

2 mesi fa

Risolto


Swap between columns
The idea is to swap between second and second last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

2 mesi fa

Risolto


Hamiltonian Cycle
This is related to the Travelling Salesman Problem 1339 created by Alex P. A Hamiltonian cycle or traceable cycle is a path tha...

3 mesi fa

Risolto


Langston's Ant
The <http://en.wikipedia.org/wiki/Langton%27s_ant Langston's Ant> Challenge is to determine the number of Black squares after K ...

3 mesi fa

Risolto


Remove a specific column with min value
Remove the column that contain the min value in the matrix?

3 mesi fa

Risolto


Remove a specific column with max value
Remove the column that contain the max value in the matrix?

3 mesi fa

Risolto


Remove a specific row with min value
Remove the row that contain the min value in the matrix?

3 mesi fa

Risolto


Remove a specific row with max value
Remove the row that contain the max value in the matrix?

3 mesi fa

Problema


List ways to make a sum in Killer Sudoku
In Sudoku, the subject of several Cody problems, one tries to arrange the digits 1 through 9 in a 9x9 grid (of nine 3x3 boxes) s...

3 mesi fa | 1 | 3 risolutori

Problema


Compute a sum involving the zeta function
Write a function to compute the sum for , where is the zeta function, the subject of Cody Problems 45939, 45988, and 45997.

3 mesi fa | 0 | 3 risolutori

Risolto


Getting values from a vector
This exercise is for finding the values that meet your criteria. a = [-5 28 7 83 73]; b = 23 ; c = (a > b) Then : c = ...

3 mesi fa

Risolto


Evaluate Poker Hand
Given an input table of card values and card suits between five and thirteen cards, choose the best five cards and output the ra...

3 mesi fa

Risolto


Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...

3 mesi fa

Risolto


Summation of Non Zeros Numbers in String Variable
Find the Summation of Non Zeros Numbers in String Variable The input : x = '100205' The Output : y = 8

3 mesi fa

Risolto


Range of Values in a Matrix
Create a function that accepts a matrix of real numbers as input and returns the range of the values contained in the matrix. Th...

3 mesi fa

Problema


Compute the polylogarithm for real arguments
The polylogarithm appears in quantum statistics and quantum electrodynamics, and for special cases of and , it connects to the...

3 mesi fa | 0 | 2 risolutori

Risolto


Find the path through the cell
A list of cells is given. Return true if the elements of the list increase monotonically (each element is strictly larger tha...

4 mesi fa

Risolto


Create rectangular function.
Rectangular function - Wikipedia

4 mesi fa

Problema


Count paths between corners of a grid that remain on or below the diagonal
Consider motion from the lower left corner of a square grid to the upper right corner. The motion is constrained in two ways: (1...

4 mesi fa | 0 | 3 risolutori

Carica altro