Solved


Matrix Transposition
Given a matrix and an index, perform matrix transposition as follows - Replace non-corner value of ith ring from outside, with...

10 months ago

Solved


Padovan Polynomials
Hello there. I'm afraid I bear bad news - Anakin Skywalker is no longer a Jedi. But fear not young Padawan, we shall not falter...

10 months ago

Solved


Sub-Diagonal Sum
Given a (m x n) matrix and a value r {1,-1}, change every element to the sum of the diagonal led by the element. r=1 > regular ...

10 months ago

Solved


Shapiro Polynomials
Given an order n, return the coefficients of 1st Shapiro polynomials Pn(x) - %Example P1(x) = x + 1 => Output = [1 1]; P...

10 months ago

Solved


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

10 months ago

Solved


Cyclotomic Polynomials
Given a Natural number (N), return the corresponding Cyclotomic Polynomial.

10 months ago

Solved


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

10 months ago

Solved


Continuous NaNs - I
Remove any continuous NaNs that appear in the array - %Example 1 input = [1 NaN 2 NaN NaN 3 NaN NaN NaN] output = [1 NaN 2 ...

10 months ago

Solved


Rooky Towers
You are wandering and as you realise something's off, you find yourself lost in a peculiar place - Over a giant field which is ...

10 months ago

Solved


Easy Sequences 30: Nearly Pythagorean Triangles
A Nearly Pythagorean Triangle (abbreviated as "NPT'), is an integer-sided triangle whose square of the longest side, which we wi...

10 months ago

Solved


Touchard Polynomial
Return the coefficients of nth (n>=0) Touchard polynomials - T1(x) = x; output = [1 0]; T2(x) = x^2 + x; output = [1 1 0]...

10 months ago

Solved


row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.

10 months ago

Solved


Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

10 months ago

Solved


Trickier Timing
You solution should return control to main program only when the current time ends in either a 5 or 0 (e.g. the current seconds ...

10 months ago

Solved


Gaussian elimination
Get the Gussian elimination of the Matrix Given You cannot use built-in Matlab functions triu :)

10 months ago

Solved


Create tangent function out of sine function only
Please don't use cosine and tangent functions

10 months ago

Solved


Remainder
Given two number a and b find the remainder when you divide a by b

10 months ago

Solved


Mode
Find the mode of a vector x

10 months ago

Solved


Subtraction
Given two numbers a and b subtract them

10 months ago

Solved


Prime Number
Determine if a number is prime

10 months ago

Solved


Add two numbers
Given two numbers a and b add them together

10 months ago

Solved


Multiplication
Given 2 numbers a and b mulitply them

10 months ago

Solved


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

10 months ago

Solved


Moyenne pondérée
Ecrire une fonction qui prend en entrée un vecteur P et un vecteur V et calcule la moyenne pondérée MP des élements vi d'un vec...

10 months ago

Solved


ICFP2024 007: Lambdaman 1, 2, 3 Breadth Solver
The ICFP2024 contest was held June29 thru July 1. The contest consisted of five parts: ICFP Language, Lambdaman maze, Starship f...

10 months ago

Solved


ICFP2024 001: Lambdaman 6
The ICFP2024 contest was held June29 thru July 1. The contest consisted of five parts: ICFP Language, Lambdaman maze, Starship f...

10 months ago

Solved


ICFP 2024 Programming Contest June 28 thru July 1
This is to announce the annual ICFP programming contest for 2024. The ICFP 2024 homepage link is ICFP 2024 . Registration will...

10 months ago

Solved


Build triangulation from -sorted- edge list
Problem statement An edge list is simply a N x 2 matrix of positive integers, in which N is the number of edges and each intege...

11 months ago

Solved


Check Euler's characteristic on regular polyhedra
Problem statement Given the number of vertices and the number of faces of a given regular polyhedron, compute the number of its...

11 months ago

Solved


Mesh the square with triangles
Problem statement An square is a regular polygon with 4 vertices and 4 edges. A triangulated mesh T (stands for triangles he...

11 months ago

Load more