Risolto


Sum along each diagonal of a matrix
Write a routine that returns the sums along the diagonals of a given matrix, A, where the first diagonal is the bottom left corn...

circa un anno fa

Risolto


Given length x find the area y of the square
Given length x find the area y of the square

circa un anno fa

Risolto


More luck than brains
Give a random function that guess and return numbers from 1 to 6 exactly like the test suite .

circa un anno fa

Risolto


Calculate the Levenshtein distance between two strings
This problem description is lifted from http://en.wikipedia.org/wiki/Levenshtein_distance. The Levenshtein distance between two...

circa un anno fa

Risolto


Sudoku Solver - Standard 9x9
Solve a Standard 9x9 <http://en.wikipedia.org/wiki/Sudoku Sudoku>. Values 1 thru 9 occur in each row, column, and the nine non-o...

circa un anno fa

Risolto


Area of a rectangle
FInd the area of a rectangle with a length L and width W. Round to the nearest integer.

oltre un anno fa

Risolto


area of a square
find the generic solution for an area of a square

oltre un anno fa

Risolto


EZ
EZ

oltre un anno fa

Risolto


EZZ
EZZ

oltre un anno fa

Risolto


EZ4

oltre un anno fa

Risolto


EZ5
EZ5

oltre un anno fa

Risolto


EZ6

oltre un anno fa

Risolto


EZ7
EZ

oltre un anno fa

Risolto


EZ8
EZ

oltre un anno fa

Risolto


EZ9
EZ

oltre un anno fa

Risolto


EZ10
EZ

oltre un anno fa

Risolto


Find out if the given number is a square of natural number.
For example , Input =4,output =1 Input=1,output=1 Input=0,output=0 Input=8,output=0

quasi 2 anni fa

Risolto


Highly divisible triangular number (inspired by Project Euler 12)
Triangular numbers can be calculated by the sum from 1 to n. For example, the first 10 triangular numbers are: 1, 3, 6, 10, ...

circa 2 anni fa

Risolto


Find the nth nude number
The number 672 is a nude number because it openly displays three of its divisors: 6, 7, and 2. In other words, a nude number is ...

circa 2 anni fa

Risolto


Instructions Following
Complete the function follow(s) which, for a given string (containing only the letters 'f', 'b', 'l', 'r'), calculates the final...

circa 2 anni fa

Risolto


Wheatstone bridge
Determine if a set of resistors maintain Wheatstone bridge equilibrium

circa 2 anni fa

Risolto


Remove the diagonal of a square matrix
Some Cody problems ask solvers to remove columns (e.g., CP 7), and others ask solvers to remove rows (e.g., CP 44033). Write a...

circa 2 anni fa

Risolto


Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...

circa 2 anni fa

Risolto


Watt
Ampere x Volt = Watt

circa 2 anni fa

Risolto


iteration of N blank spot
we have N spot which can be blank o filled calculate the number of iteration for these spots. e.g. N=2 1- blank blank 2- blank f...

circa 2 anni fa

Risolto


Prime number removal
remove all prime numbers from the input e.g. input = 1 2 3 4 5 6 7 8 9 10 11 12 ...

circa 2 anni fa

Risolto


house of cards
How many cards do one need to build a house of cards with n stages? Short explanation: /\ 2 cards for 1 stage ...

circa 2 anni fa

Risolto


balance vector
Given a non-empty vector x with integer elements. x shall be called balance vector if one can split the elements of x into two g...

circa 2 anni fa

Risolto


fractal circles
Create a fractal with circles using the same process as the Sierpinski triangle (https://en.wikipedia.org/wiki/Sierpinski_trian...

circa 2 anni fa

Risolto


Halder function
Find the halder function value of a number

circa 2 anni fa

Carica altro