Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


How to find the 4th power of a variable
Getting an aquaintance on how to solve for the 4th power of a variable.

3 years ago

Load more