已解决


Counting Permutations
In the permutations of the numbers 1 to n, count the number of permutations in which exactly m elements are greater than the pre...

1 year 前

已解决


Hermite Polynomials
Problem 1304 deals with Hermite polynomial of the physicist's type. In this problem, Return the n-th Hermite polynomial of the ...

1 year 前

已解决


Extract the prime numbers
Given a list of elements, extract the prime numbers from that array.

1 year 前

已解决


Find alternating sum
Given an array, find alternating sum i.e. – y = x (1) – x (2) + x (3) – x (4) + x (5) - …

1 year 前

已解决


Play with array Min-Max
An array is provided. For example, a= [ 2,1,11,4,5,13] Create an array from a like this way, out= [ 1,11,2,13,4,5] ➢ 1st take...

1 year 前

已解决


Given a matrix X, manipulate it accordingly
Given a matrix X, 1st add a column to the matrix whose elements are the summation of each rows. Then add a row to the matrix who...

1 year 前

已解决


An array is given. Find the unique elements of the array. [keep the sequence unchanged]
An array is given. Find the unique elements of the array. [keep the sequence unchanged] For example if input x=[2 ,4 , 9 ,2 ,...

1 year 前

已解决


An array is given that contains the marks received by a group of students in their class test. Find out the highest 3 marks received by the students?
An array is given that contains the marks received by a group of students in their class test. Find out the highest 3 marks rec...

1 year 前

已解决


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

1 year 前

已解决


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

1 year 前

问题


Easy Sequences 91: Generalized McCarthy-91 Recursive Function
The McCarthy 91 function is a recursive function, defined by the computer scientist John McCarthy as a test case for formal veri...

1 year 前 | 0 | 2 个解题者

已解决


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

1 year 前

已解决


Mimic foldl in functional programming
Mimic the higher-order function |foldl| ( <http://en.wikipedia.org/wiki/Fold_%28higher-order_function%29 Wikipedia:Fold (higher-...

1 year 前

已解决


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

1 year 前

已解决


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

1 year 前

问题


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

1 year 前 | 0 | 1 个解题者

问题


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

1 year 前 | 1 | 1 个解题者

已解决


Combined Ages 1 - Symmetric, n = 3
You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...

1 year 前

已解决


Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

1 year 前

已解决


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

1 year 前

问题


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

1 year 前 | 1 | 2 个解题者

已解决


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

1 year 前

已解决


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

1 year 前

已解决


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

1 year 前

已解决


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

1 year 前

已解决


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

1 year 前

问题


Easy Sequences 87: Perfect Power Modular Residue of a Nested Sum-product Function
For a positive integer , we define the function , as follows: ; and for . He...

1 year 前 | 0 | 2 个解题者

已解决


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

1 year 前

已解决


Compute the Lagarias Riemann Hypothesis sequence
Write a function that takes an input number and produces a sequence (i.e., all values up to and including the th value) compute...

1 year 前

已解决


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

1 year 前

加载更多