Solved


Find the Fourier coefficients os a periodic function
For the a given periodic function, f, calculate the first N Fourier coefficients. The inputs to your function must be one period...

6 years ago

Solved


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

6 years ago

Solved


Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

6 years ago

Solved


Problem for beginners
M is a nxm matrix. Swap the fist and the second last column with eachother. X=[1 2 3;4 5 6;7 8 9] Y=[2 1 3;5 4 6;8 7 9]

6 years ago

Solved


Inscribed circle in a triangle
A circle of radius r is inscribed in a triangle. In the figure, AC=x and BC=y. values of x & y are given. Find the ar...

6 years ago

Solved


Sub-sequence - 03
Given three sequences, find the length of the longest common subsequence. It is similar to the previous problem -- <https...

6 years ago

Solved


Sub-sequence - 02
Given two sequences, find the length of the longest common subsequence. a=[1,1,1,1,1,2,3,1,4] b=[2,3,0,0,9,5,4,1] longe...

6 years ago

Solved


Sub-sequence - 01
Find the length of the longest increasing subsequence in the given array. a=[2,4,2,1,3,5,6] longest increasing subsequen...

6 years ago

Solved


Find the sum of all integers in a given matrix
Finding sum of all integers in a given matrix

6 years ago

Solved


Find the sum of all integers in a given matrix
Finding sum of all integers in a given matrix

6 years ago

Solved


Count the number of reaction chains achievable in T mins
This problem is related to Problem <45467>. Let's denote a list of *N* compounds as 1, 2, ..., *N*. You are then given a list...

6 years ago

Solved


Squares of odd numbers upto a given range
Find the squares of odd numbers upto a given range. If Given x=6 return y=(1^2,3^2,5^2) y=1,9,25 If Given x=5 retu...

6 years ago

Solved


Just another norm problem (JANP)
*Task:* Implement a function that takes a square matrix A and returns a nonzero vector yc which minimizes ...

6 years ago

Solved


Return the amount of palindromes (words) in the string.
For example: Input: s = 'eye story pop dictionary noon enjoy software moon' Output: amount = 3 Test each word...

6 years ago

Solved


Maximize Non-Co-Planar Points in an N-Cube
This Challenge is to find a set with the maximum number of integer points that create planar surfaces with a maximum of three po...

6 years ago

Solved


Find the fastest reaction chain to reach a target compound
Let's denote a list of *N* compounds as 1, 2, ..., *N*. You are then given a list of valid reactions for converting one compound...

6 years ago

Solved


Fibonacci Word
F1='0' F2='1' F3 is the catenation of the previous two. So, F3 = cat(F2,F1)='10'. similarly, F4 = cat(F3,F2...

6 years ago

Solved


Design a minimum-cost cable network for a power grid
You are given the 2-D point locations ( _xi_ , _yi_ ) of *N* _components_ of a power grid. These _components_ include power sour...

6 years ago

Solved


Construcción de matrices a partir de vectores
Construye la matriz A=[1 2 2 1; 2 2 3 3;2 3 3 4; 1 3 4 4] utilizando los siguientes vectores. c=[1 2 3 4]; d=[2 3 4]; b...

6 years ago

Solved


RIPEMD160 Hash
Generator the RIPEMD160 hash given an input string and output the hexadecimal RIPEMD160 hash. For example: Input='My name is...

6 years ago

Solved


SHA256 Hashing
Conduct SHA256 hashing on a hexadecimal input to produce a 256-bit hexadecimal output. Example: hash = SHA256('aa') hash ...

6 years ago

Solved


Portfolio diversification: choose your stocks !
we have the returns of 3 stocks for the last 4 years and we have to combine only 2 stocks that are less correlated. Example: ...

6 years ago

Solved


Rate of event occurence: find percentiles of the distribution (for smallish rates)
*In this problem you need to find the 5th and 95th percentiles of a Poisson distribution defined by parameter _μ_ (the mean rate...

6 years ago

Solved


RISK Calculator - Large Armies, High Accuracy, Fast
This Challenge is to quickly provide the high precision probability of legal RISK battles up to 100 vs 100. [ Attack >= 2 and D...

6 years ago

Solved


Solve the picross! (Easy)
Solve the picross! <http://en.wikipedia.org/wiki/Nonogram> The arguments (horz and vert) are cells containing the clues, e...

6 years ago

Solved


Word Ladder
Given a set of words, and two other words - start and destination, Find the smallest chain from start to the destination such...

6 years ago

Solved


Box
Give the volume of a box, x is equal to the body diagonal.

6 years ago

Solved


Simple Matrix
Make the following matrix without typing it in one by one. [1 2 3; 2 4 6; 4 8 12] x=[1 2 3].

6 years ago

Solved


Minimal Path - 04
Given a matrix, find the minimal path sum from any cell in the left column and finishing in any cell in the right column. You...

6 years ago

Solved


Minimal Path - 03
Given a matrix, find the minimal path sum from the top left to the bottom right corner. Now you can move up, right & down. ...

6 years ago

Load more