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

2 meses hace

Resuelto


Easy Sequences 90: Triple Summation of a Combinatorial Function
Given a positive integer , we are asked to evaluate the following triple summation: The symbol is the combin...

2 meses hace

Resuelto


Easy Sequences 89: Double Summation of a Trigonometric Product
Given and angle in radians and a positive integer , evaluate the following product summation: which 'dir...

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

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

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

2 meses hace

Resuelto


Easy Sequences 84: Digits of Powers of 5
OEIS sequence #A008566, deals with the following series: This sequence is the digits of powers of 5 listed si...

2 meses hace

Resuelto


Easy Sequences 83: Digits of Powers of 3
This problem is a simpler version of 'Easy Sequences 82: Digits of Powers of 2'. Given integers and , we are asked to return th...

2 meses hace

Resuelto


IQpuzzler Challenge #2: Find all possible solutions on an empty 4-by-5 board with 5 pieces, rotating and flipping pieces allowed
We are playing a simplified version of IQpuzzler, with a smaller board of 4-by-5 spaces and just 5 pieces, as shown in the pictu...

2 meses hace

Resuelto


Find the dividend
Given a vector of pairwise coprime positive integers, p, and a vector of corresponding remainders, r, return a positive integer,...

2 meses hace

Resuelto


Find a subset that divides the vector into equal halves --- HARD MODE
This problem is the same as Ned Gulley's problem 660, but the input arrays will be larger. As in problem 660, given a vector ...

2 meses hace

Resuelto


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

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

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

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

2 meses hace

Resuelto


Easy Sequences 85: Hyperprimorials
Given an integer , the primorial of , , is defined as product of all primes from to the -th prime. In other words, if is the ...

2 meses hace

Resuelto


Easy Sequences 82: Digits of Powers of 2
In Project Euler Problem #16, we are asked for sum of the digits of powers of 2. Here we will be asked for more than that. Give...

2 meses hace

Resuelto


List unitary divisors of a number
A unitary divisor of a number divides and satisfies gcd(,) = 1. For example, 9 is a unitary divisor of 18 because gcd(9,2) = ...

2 meses hace

Resuelto


Acid-Base Chemistry: Which side of the reaction is more favorable?
In an Acid-Base reaction, there is always going to be an acid, a base, a conjugate acid, and a conjugate base. When provided wit...

2 meses hace

Resuelto


Is the number of 1s in a binary integer odd or even?
Your function should turn the input integers into binary form and count the number of 1s in the binary. If the number is odd, re...

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

2 meses hace

Resuelto


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 meses hace

Resuelto


Slope intercept application
Find y given slope (m), x, and y intercept (b).

2 meses hace

Resuelto


Check if a year is a leap year or not
Return 1 if a given year is a leap year or 0 if it is not

2 meses hace

Resuelto


Remove Duplicates
Remove duplicates from the vector of integers and display in sorted order

2 meses hace

Resuelto


Compute the drag on a moving vehicle
We assume no rolling resistance, and the simple rule for Drag : , where is the density of the fluid (assumed at 1.2 ), is the ...

2 meses hace

Resuelto


Determine if vector has any zeroes
Return 1 if vector has atleast 1 zero, else return 0

2 meses hace

Resuelto


IQpuzzler Challenge #1: Find all possible solutions with 2 pieces already on the board and fixed orientation of all other pieces
IQpuzzler is a one player board game. The 2D version provides a rectangular board with 5-by-11 spaces and 12 colored pieces (con...

2 meses hace

Resuelto


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 meses hace

Resuelto


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 meses hace

Cargar más