A résolu


Counting Squares
An algorithm starts with a single square and on each of its next iterations adds new squares all around the outside as shown bel...

plus de 4 ans il y a

A résolu


tetration
About tetration.

plus de 4 ans il y a

A résolu


Calculate time taken by light to reach earth surface
We know the time(seconds) taken by light to reach surface of earth. What if the distance varies yearly or source of light moves ...

plus de 4 ans il y a

A résolu


Say type of roots in quadratic equation
Given the coefficients of a quadratic equation, write a function that gives the output y='RealDifferent' if the roots are real a...

plus de 4 ans il y a

A résolu


Alternating 1´s and 0´s in a matrix
Given an odd number n, write a function that creates a matrix y with dimension nxn alternating 1's and 0's, and starting with 1 ...

plus de 4 ans il y a

A résolu


Get the mean digit
Write a function that gives the mean digit (round towards nearest integer) of an input and positive number. For example: x ...

plus de 4 ans il y a

A résolu


Alternate list of elements
Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

plus de 4 ans il y a

A résolu


Find argmax of a function
You are given vectors x and y (=f(x)). Return the element of x for which f(x) is maximized.

plus de 4 ans il y a

A résolu


Calculate the volume of a cone
Calculate the volume of a cone given an array containing one column of radii and one column of the height of the cone. * Reme...

plus de 4 ans il y a

A résolu


Find The Difference
Vector x is given.calculate the difference between the biggest and the smallest number that we can create from elements of x. f...

plus de 4 ans il y a

A résolu


Distance Between Points
Being n the number of points (If n = 3 there would be 3 points: A, B and C). The distance between each pair of points increases...

plus de 4 ans il y a

A résolu


Find the area of a triangle having vertices (A,B), (C,D), and (E,F)
Find the area of a triangle using if we have the three vertices of the triangle

plus de 4 ans il y a

A résolu


Hoax Numbers
A Hoax Number (OEIS A019506) is defined as a composite number, whose sum of digits is equal to the sum of digits of its distinct...

plus de 4 ans il y a

A résolu


System of Linear Equations

plus de 4 ans il y a

A résolu


Minimum jumps to reach end of the array
Given an array of integers where each element represents the max number of steps that can be made forward from that element. Ste...

plus de 4 ans il y a

A résolu


Queen's move - 02
In continuation with the problem-45236 ... In the previous problem, it was assumed that there were no other chess pieces on th...

plus de 4 ans il y a

A résolu


Queen's move
given a number of consecutive moves of queen, check for their validity based on their previous position.... but remember if u g...

plus de 4 ans il y a

A résolu


Josephus Survivor
The <http://en.wikipedia.org/wiki/Josephus_problem Josephus Challenge> is to find the position that is the last remaining when e...

plus de 4 ans il y a

A résolu


Graph Algorithms 3: Number of Connected Components
Given an adjacency matrix of a simple undirected graph, find the number of connected components.

plus de 4 ans il y a

A résolu


Determine connected components of a graph
Adjacency matrix of an undirected graph is given. Return the number of connected components in the graph.

plus de 4 ans il y a

A résolu


Number Puzzle - 092

plus de 4 ans il y a

A résolu


Number Puzzle - 091

plus de 4 ans il y a

A résolu


Number Puzzle - 090

plus de 4 ans il y a

A résolu


Number Puzzle - 089

plus de 4 ans il y a

A résolu


Number Puzzle - 088

plus de 4 ans il y a

A résolu


Number Puzzle - 087

plus de 4 ans il y a

A résolu


Number Puzzle - 086

plus de 4 ans il y a

A résolu


Number Puzzle - 085

plus de 4 ans il y a

A résolu


Number Puzzle - 084

plus de 4 ans il y a

Charger plus