Solved


Google Drive: MATLAB mat file download
Matlab 'mat' files are notoriously hard to email and download as they are binary files. To make a 'mat' file downloadable from ...

1 month ago

Solved


Google Drive file download
This Challenge is to download a file from GoogleDrive given its "copylink" provided URL and a file name. GoogleDrive links fail...

1 month ago

Solved


ICFP 2022 - Initial to Goal image using block remapping
The ICFP2023 Challenge is Jul 7-10. Start is 0500 PT 7/7/23, Registraion is open. Posted 7/5/23. Updates at TwitICFP2023. These ...

1 month ago

Solved


Optimal saving in Solow's classical growth model
Let us consider a simplified version of Solow's classical growth model. Let , , , and denote production, the capital stock, l...

1 month ago

Solved


Finding valleys
You have a vector of altitudes (units are arbitrary) and need to find the depths of all the valleys. You also need to determine ...

1 month ago

Solved


ICFP 2022 - Create Command Script from Color-Region-Fill
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

1 month ago

Solved


Recurssive serie
let the numerical serie U(n) such as U(n+1)= 0.2U(n) + 0.3U(n-1) ; U(0) = a ; U(1) = b the goal is to plot the elements of this...

1 month ago

Solved


ICFP 2022 - RoboPaint Swaps
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

1 month ago

Solved


ICFP 2022 - Merging 6x6 regions
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

1 month ago

Solved


Compute rational expectations in a static, linear NKM model
Consider a static, linear approximation of the baseline New Keynesian macroeconomic model. This can be described by an IS equati...

1 month ago

Solved


ICFP 2022 - True Optimal RGB for a region
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

1 month ago

Solved


ICFP 2022 - Optimal RGB for a region
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

1 month ago

Solved


ICFP 2022 - RoboPaint Image Scoring
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

1 month ago

Solved


Calculate the volume of the intersection of two balls
Consider two balls (solid spheres) in , with radius and respectively. Suppose that the distance between the centers of the two...

1 month ago

Solved


Mantissa of IEEE Single
Output the mantissa bits as a uint32 of the IEEE representation of the single-typed 32-bit float input. Store these bits in the ...

1 month ago

Solved


Sign of IEEE Single
Output the sign bit of the IEEE representation of the single-typed 32-bit float input as the uint8 "1" or the uint8 "0".

1 month ago

Solved


Determine whether a number is prome
In discussing the unique factorization of numbers in Elementary Number Theory, Underwood Dudley devised a new number system: “C...

1 month ago

Solved


Minimum number of crossings in a complete graph
This problem is related to problem 58384. A complete graph may be drawn in different ways, such that the number of line crossin...

1 month ago

Solved


Minimum number of crossings in a complete bipartite graph
This problem is related to problem 58389. A complete bipartite graph may be drawn in different ways, such that the number of li...

1 month ago

Solved


Classify water surface profiles
Problem statement Write a function to classify the water surface profile starting at depth in a channel with longitudinal slop...

1 month ago

Solved


Draw '5' in Chinese.
Draw a x-by-x matrix '五' using 1s and 0s. Example: x=5 ans= [1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 1 1] x=7...

1 month ago

Solved


List numbers that cannot be expressed as the sum of fewer than four squares
Lagrange proved that all positive integers can be expressed as the sum of four squares. For example, 27 = 16 + 9 + 1 + 1. Howeve...

1 month ago

Solved


Remove runs of at least n consecutive NaNs
This problem is inspired by Dyuman Joshi's problem 58329. Given a row vector x and a natural number n, remove all runs of at lea...

1 month ago

Solved


Easy Sequences 113: Almost Golden Integer Rectangles 2
A golden rectangle is a rectangle whose side lengths are in the golden ratio, , where: . ...

1 month ago

Solved


Easy Sequences 111: Repnums as Hypotenuse of Pythagorean Triangles
The number belongs to a class of numbers called Repunit Numbers, in which all digits are . For this problem, we'll define a s...

1 month ago

Solved


Easy Sequences 106: Counting Pythagorean Triangles inside a Circle
Pythagorean Triangle is a right triangle all sides of which are represented by integers. Examples are triangles with sides and ...

1 month ago

Solved


Easy Sequences 107: Minimized Circumcircle-Incircle Areas Ratio of Partial Pythagorean Triangles
We define a Partial Pythagorean Triangle (PPT) as a right triangle wherein the hypotenuse and at least one leg are integers. Thu...

1 month ago

Solved


Decode a message encrypted with the square root of 2
Cody Problem 58299 asks you to encrypt a message by changing all letters to uppercase and randomly choosing a position of the AS...

1 month ago

Solved


Encrypt a message with the square root of 2
Suppose you want to encrypt the word ‘TWIN’. The ASCII codes for the four letters are 84, 87, 73, and 78. If you consider the fr...

1 month ago

Solved


Convert vector of strings to lower triangular matrix
Given a non-empty vector vec of strings, please put its elements into the lower triangular half of a square matrix M column-wise...

1 month ago

Load more