Gelöst


Determine whether a number is a repfigit number
The number 28 is a repfigit number because it has more than one digit and it appears in the sequence starting with its digits an...

mehr als 2 Jahre vor

Gelöst


List lunar triangular numbers without duplication
Triangular numbers—which are the subject of Cody Problems 5, 291, 44289, 44732, 45833, 55680, 55695, and 55705—are the sums of c...

mehr als 2 Jahre vor

Gelöst


Primitive Root Modulo n
Given a positive integer n > 2, return a vector, v, of positive integers smaller than n that are primitive roots modulo n. If no...

mehr als 2 Jahre vor

Gelöst


ベクトルを作成する
0 から n までのベクトルを 2 間隔で作成します。

mehr als 2 Jahre vor

Gelöst


Logistic map
The sequence defined by x_n = 4*r*x_{n-1}*(1-x_{n-1}) and a given 0 < x_1 < 1 turns each x_n into a polynomial of r. Write a fu...

mehr als 2 Jahre vor

Gelöst


Bullseye Matrix with Zeros
Inspired by Problem 18, create a bullseye matrix with the addition of padding equal to 0 between concentric rings. Matrices are ...

mehr als 2 Jahre vor

Gelöst


Parametric Array
Create a row vector, 1xN (Integer, >1), such that the mean of the vector is M (Real number) and the standard deviation of the ...

mehr als 2 Jahre vor

Gelöst


Rotation matrix of a sequence of 3D points
Given a sequence of rotation matrices Rotation_Matrix [3x3xN], and a sequence of 3D points [3x1xN], compute the [3xN] sequence i...

mehr als 2 Jahre vor

Gelöst


ICFP 2023: Orchestra, Place Band members to maximize Audience net Happiness
The ICFP 2023 Competition in July was to place musicians on a stage to maximize the attendees net happiness. The musicians playe...

mehr als 2 Jahre vor

Gelöst


Determine if a number is a cool number
A number is considered cool if it is 3 digits, has a 5 in it, and is divisible by 4.

mehr als 2 Jahre vor

Gelöst


Sum of squares
Given a number n, return the sum of squares of all integers from 1 to n.

mehr als 2 Jahre vor

Gelöst


Palindrome vector
Check if a given vector is Palindrome. Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]

mehr als 2 Jahre vor

Gelöst


sum
add two number

mehr als 2 Jahre vor

Gelöst


Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...

mehr als 2 Jahre vor

Gelöst


Determine whether a number is a Zeisel number
Do you know what is interesting about the number 1729? That’s right: it’s the third Zeisel number, a number given by , where ...

mehr als 2 Jahre vor

Gelöst


Snakes and Ladders: Variable Die
This problem is a sequal to Problem 59132 Snakes and Ladders: Average Number of Turns. Instead of a 6-sided die, your function ...

mehr als 2 Jahre vor

Gelöst


Snakes and Ladders: Average Number of Turns
In this problem, you will play a single-player variant of the classic game Snakes and Ladders. The rules are as follows: The pl...

mehr als 2 Jahre vor

Gelöst


Determine aquifer properties: steady pump test in confined or unconfined aquifers
Problem statement Write a function to determine the hydraulic conductivity and radius of influence using data from a steady p...

mehr als 2 Jahre vor

Gelöst


Determine aquifer properties: steady pump test in a leaky confined aquifer
Problem statement Write a function to determine the hydraulic conductivity of a leaky confined aquifer and the hydraulic condu...

mehr als 2 Jahre vor

Gelöst


Write out numbers in words
Write out numbers in words ( range [0-9999] ) with British spelling rules. For example; 1 > one 56 > fifty-six 100 > one hund...

mehr als 2 Jahre vor

Gelöst


Calculate the sum of two numbers x and y
Calculate the sum of two numbers x and y

mehr als 2 Jahre vor

Gelöst


Design a capture zone
One approach to remediating a contaminated site is to pump and treat the contaminated groundwater. If the site has background fl...

mehr als 2 Jahre vor

Gelöst


Compute the bubble popper fidget spinner sequence
A fidget spinner is a toy made of multiple lobes that pivot on a ball bearing. In some, the lobes hold bubble poppers, or rubber...

mehr als 2 Jahre vor

Gelöst


Boolean algebra
Your contractor from Elbonia has sent you the prototype of the new logical unit. It turns out that the only logical relation it ...

mehr als 2 Jahre vor

Gelöst


rotation et mise à l'échelle avec des complexes
Ecrire une fonction Zr=scale_rot(A,phi,Z) qui permet une mise à l'échelle d'un facteur A et une rotation d'un angle phi (en rad)...

mehr als 2 Jahre vor

Gelöst


Check a scheme to dewater a construction area
In addition to supplying water and capturing contaminants, wells can be used to lower the water table in a construction area. In...

mehr als 2 Jahre vor

Gelöst


Find the phi variation as a function of distance after solving through finite volume method. Return dphi/dx at all faces in form of array.
The question is a NPTEL online course assignment question. I have put it here becuase I wanted to create a problem set for num...

mehr als 2 Jahre vor

Gelöst


Find stiffness of all beams for single floor in building
Create a function that finds this stiffness k of all the beams (also known as 'stanchions') for one floor of a three storey buil...

mehr als 2 Jahre vor

Gelöst


Find mass of single floor in building
A model building has three floors are highlighted in different colours here: Assu...

mehr als 2 Jahre vor

Gelöst


The Hacker Parole Problem
The hacker parole problem 100 hackers have been imprisoned, but have been given a way to get parole. Each of the 100 prisone...

mehr als 2 Jahre vor

Mehr laden