A résolu


Merge two integers
We want to merge the digits of two integers having the same number of digits to obtain a new integer whose digits are obtained b...

3 jours il y a

A résolu


Determine if a Digit is Isolated
A digit is considered isolated if both its left and right neighbors are different from itself. For example, in the number 776444...

3 jours il y a

A résolu


Pivot index
Let L be a vector of numbers. We are searching for the index n of the pivot element defined as follows: the dot product of the e...

3 jours il y a

A résolu


Counting the occurrences of a digit in a book
The printer has printed a book with 'p' pages. How many times did they use the character 'd'? In other words, how many times doe...

3 jours il y a

A résolu


finding vector pair with min angle between them
given a matrix with more than one row , compare row vectors of the given matrix and find the pair with the minumum angle between...

3 jours il y a

A résolu


Calculating distance of lightning based on time delay
If we know the time delay between when we see lightning and hear thunder then we can calculate approximate distance(in meters) o...

3 jours il y a

A résolu


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

4 jours il y a

A résolu


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

4 jours il y a

A résolu


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

4 jours il y a

A résolu


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

4 jours il y a

A résolu


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

4 jours il y a

A résolu


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

4 jours il y a

A résolu


Orthogonalize 3 column vectors using the Gram-Schmidt process
Use the Gram-Schmidt process to orthogonalize three linearly independent column vectors. Return three output column vectors that...

4 jours il y a

A résolu


Orthogonalize a 2x2 matrix using the Gram-Schmidt process
Use the Gram-Schmidt process to orthogonalize two linearly independent column vectors. Return two output column vectors that are...

4 jours il y a

A résolu


Beam me up, Scotty!
It's the mid 22nd century. You, Montgomery Scott, are appointed the chief engineer of the Starship Enterprise. The Starship is...

4 jours il y a

A résolu


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 81 cells (or a 3x3...

4 jours il y a

A résolu


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

4 jours il y a

A résolu


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

4 jours il y a

A résolu


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

4 jours il y a

A résolu


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

4 jours il y a

A résolu


ICFP 2023 Orchestra: Score Optimization of Puzzle-17 Second point
The ICFP 2023 Competition in July was to place musicians on a stage to maximize the attendees net Joy. The ICFP 2023 Orchestra ...

4 jours il y a

A résolu


Integrate a Power-Tower of a Function
Write a function to compute this integral: Where the function, F(x), will be provided as an Anonymous function of x, and th...

4 jours il y a

A résolu


Create rectangular function.
Rectangular function - Wikipedia

4 jours il y a

A résolu


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 jours il y a

A résolu


Count the ones in a divisibility matrix
Cody Problem 59506 asked solvers to compute the determinant of matrix consisting of ones in the first column and anywhere the ro...

4 jours il y a

A résolu


Compute the determinant of a divisibility matrix
Consider a matrix consisting of ones in the first column and anywhere the row index divides the column index. The 4x4 matrix is ...

4 jours il y a

A résolu


Compute the sum of distances from a point to the sides of an equilateral triangle
Write a function to compute the sum of the (shortest) distances from a point inside an equilateral triangle to the sides of the ...

4 jours il y a

A résolu


Quasi-Carmichael Numbers
Determine if the provided inputs are Quasi-Carmichael numbers and output a logical matrix of the same size as the input.

4 jours il y a

A résolu


Minimum, Maximum, and Number of Primitive Roots Modulo (m)
This is a continuation of problem 59212, find the number of primitive roots modulo (m) and output the minimum and maximum of tho...

4 jours il y a

A résolu


Carmichael Function
Compute the carmichael function for the input.

4 jours il y a

Charger plus