Risolto


Find the remainder - 01
Given an array of integers, find the remainder when the product of all the elements is divided by N

circa 3 anni fa

Risolto


How many apples
You have x apples I take from you y apples now how many apples you have ?

circa 3 anni fa

Risolto


Minimum Maximum Sort Array
sort one array by put minimum value followed by maximum as follow a=[2 3 1 5] and the solution is y=[1 5 2 3 3 2 5 1];

circa 3 anni fa

Risolto


Polygon Interior Angle Sum
Given the number of sides of a regular polygon, find the sum of interior angles. Return 0 for input for which regular polygon a...

circa 3 anni fa

Risolto


Compute frequency factors for the normal distribution
In frequency analysis in hydrology, the streamflow corresponding to a specified exceedance probability (or return period ) can...

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


Easy Sequences 57: "Pretty-gorean" Triangles?
A positive integer is called a regular number, if and only if there exist a non-negative integer , such that . For some reason...

circa 3 anni fa

Risolto


About jokes (and compression)
An argument can be made about jokes. The shorter they are, the funnier. Further explained here: https://en.wikipedia.org/wiki/Hu...

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


Determine flows of given probability using empirical frequency analysis
Write a function that takes as input observations of peak streamflow and exceedance probabilities expressed as percentages an...

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Carica altro