Resuelto


Compute the area of the shoemaker’s knife
A shape resembling a shoemaker’s knife is constructed from a semicircle with diameter with two semicircular “bites” of diameter...

más de 3 años hace

Resuelto


Integer vector optimal lossless deduplication
You're given an integer vector A, a Min scalar and a Max scalar. You can assume all elements in A are in [Min,Max] range, and nu...

más de 3 años hace

Resuelto


Repeatitive Summation
Given numeric vectors x, a and b, perform the following operation - a represents a vector of numbers and b represents a vector ...

más de 3 años hace

Resuelto


Find patterns in subprime Fibonacci sequences
Lots of Cody problems involve Fibonacci and Collatz sequences. Fibonacci sequences start with two numbers, and later terms are c...

más de 3 años hace

Resuelto


Easy Sequences 12: 50th Prime
Write a function that outputs the th prime after a given number . For example, the th prime after is . NOTE: If itself is pr...

más de 3 años hace

Resuelto


Leave a thumb-up to pass
Just leave a Like, and a comment if you wish. Then wait, and submit.

más de 3 años hace

Resuelto


Easy Sequences 88: Double Summation of a Combinatorial Function
Given two positive integers and , , we define the function as the sum of the reciprocals of the products of all combinations o...

más de 3 años hace

Resuelto


Compute steady drawdown in a confined aquifer
A well extracting water from a confined aquifer will lower the piezometric head and create a cone of depression. In steady state...

más de 3 años hace

Resuelto


Compute the Tetris sequence
In the Tetris sequence, which starts with a 1, the next term is the smallest positive integer not already in the sequence that h...

más de 3 años hace

Resuelto


Determine if input is a Harshad number
In mathematics a harshad number (or Niven number) in a given number base is an integer that is divisible by the sum of its digit...

más de 3 años hace

Resuelto


Locate image wells
A mathematical model of wells pumping groundwater near a boundary can be constructed using the method of images, which is also u...

más de 3 años hace

Resuelto


Compute the largest number with a given integer complexity
Cody Problems 42831 and 42834 ask us to compute integer complexity, the smallest number of 1s needed to construct a number with ...

más de 3 años hace

Resuelto


JannaT is Loved By Me
JannaT was sTarTed loved by me and that time was in 2020. A year when JannaT will starT loving me when the year divided from th...

más de 3 años hace

Resuelto


Solve an equation involving primes and fractions
Write a function to find pairs of primes and satisfying the equation where is an integer. The function should take a numbe...

más de 3 años hace

Resuelto


Easy Sequences 81: Fibonacci Radicals
The radical of a positive integer is defined as the product of the distinct prime numbers dividing . For example, the distinct ...

más de 3 años hace

Resuelto


Design a well field in an infinite aquifer
A well field provides water for a community. The design of a well field involves a goal to meet a specified service demand (i.e...

más de 3 años hace

Resuelto


Compute the Lagarias Riemann Hypothesis sequence
Write a function that takes an input number and produces a sequence computed with where is the th harmonic number and is ...

más de 3 años hace

Resuelto


01-01: 正弦波の生成
「MATLABで学ぶ実践画像・音声処理入門」のプログラム1-1 と同じ正弦波を、サンプリング周波数 10kHz で生成し、返却する関数を作成せよ。

más de 3 años hace

Resuelto


Compute a nested cube root
Consider the quantity . Write a function to compute without using loops or recursion.

más de 3 años hace

Resuelto


Easy Sequences 86: The "real" Hyperprimorials
In Easy Sequences 85, we define the hyperprimorial of , as a exponent ladder of primes numbers from the -th prime down to first ...

más de 3 años hace

Resuelto


Intersection points of a polynomial
Find the intersection points of a polynomial, given by its vector of coefficients with the X-axis and the Y-axis. Input: a poly...

más de 3 años hace

Resuelto


Harmonic series counting
The function takes a positive limit as input, And counts how many terms must be summed in the harmonic series: 1/1, 1/2, 1/3, ...

más de 3 años hace

Resuelto


Find if x is even or odd
given number x, if x is even return 1, if it is odd return 0

más de 3 años hace

Resuelto


List numbers that are not in the Fibonacci sequence
In the list of 4797 Cody problems, 53 deal with or refer to the Fibonacci sequence.* What about the other numbers? Write a funct...

más de 3 años hace

Resuelto


Rows number
Find the number of rows in a given matrix.

más de 3 años hace

Resuelto


Finding the 9th power of a variable
Getting aquainted with finding the 9th power of a variable

más de 3 años hace

Resuelto


Finding the 8th power of a variable
Getting aquainted with finding the 8th power of an element.

más de 3 años hace

Resuelto


How to find a 7th power of a variable
Getting aquainted with finding the 7th power of a variable.

más de 3 años hace

Resuelto


How to find the sixth power of a variable
Getting an aquainatance of finding the sixth power of a variable.

más de 3 años hace

Resuelto


How to find the 5th power of a variable
Getting an aquaintance of how to find the 5th power of a variable

más de 3 años hace

Cargar más