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

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

1 month ago

Solved

01-01: 正弦波の生成

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

1 month ago

Solved

Compute a nested cube root

Consider the quantity . Write a function to compute without using loops or recursion.

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

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

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

1 month ago

Solved

Find if x is even or odd

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

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

2 months ago

Solved

Finding the 9th power of a variable

Getting aquainted with finding the 9th power of a variable

2 months ago

Solved

Finding the 8th power of a variable

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

2 months ago

Solved

How to find a 7th power of a variable

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

2 months ago

Solved

How to find the sixth power of a variable

Getting an aquainatance of finding the sixth power of a variable.

2 months ago

Solved

How to find the 5th power of a variable

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

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

2 months ago

Solved

How to square root something

A practice problem to get you aquainted with how to square root something.

2 months ago

Solved

How to square something

Looking to see if something could be squared from the code you created from the input of x

2 months ago

Solved

Dyck words

A Dyck word can be considered as a string of n X's and n Y's arranged to have at least as many X's in an initial segment of the ...

2 months ago

Solved

Cluster Partition

Given an array (row or column) of numbers, divide the array into consecutive positive/negative numbers. 0 is to be treated inde...

2 months ago

Solved

Exact Cover

An efficient solution to the exact cover problem can be useful in many situations. In this problem, you are welcome to use Knuth...

2 months ago

Solved

IQpuzzler Preparation #3: Detect isolated groups of zeros in a matrix

Return true if any small, rectangular shaped, isolated groups of zeros (size 1x1, 1x2, 2x1, 1x3, 3x1 or 2x2) are present in a ma...

2 months ago

Solved

Sum the unitary divisors of a number

Cody Problems 1933 and 46898 deal with , the sum of divisors function. This problem deals with , the sum of unitary divisors fun...

2 months ago

Solved

Cricket - Is It LBW?

LBW has an unfair reputation as complicated. But if you've watched a third umpire referral, you'll know that it's just a logical...

2 months ago

Solved

IQpuzzler Preparation #2: Detect isolated zeros in a 2D matrix

Return true if any isolated single zeros are present in the input M-by-N matrix (zeros with all adjacent elements being non-zero...

2 months ago

Solved

Cricket - You Miss, I Hit (Rank Bowlers by Proportion of Bowled and LBW Wickets)

Which bowlers threaten your stumps the most? Given a table of all wickets taken during some particular set of matches and two th...

2 months ago

Solved

Volume of a Square

Find a function that creates the volume of a square if side length is 9

2 months ago