Count ones
Write a program to count number of ones (1s) in an integer variable input.
For example:
Input x=2200112231
output y=3
I...
7 years ago
Solved
Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...
7 years ago
Solved
Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x.
<<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...
7 years ago
Solved
Check to see if a Sudoku Puzzle is Solved
*Description:*
Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...
7 years ago
Solved
Roll the Dice!
*Description*
Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
*Example*
[x1,x2] =...
Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...
7 years ago
Solved
Additive persistence
Inspired by Problem 2008 created by Ziko.
In mathematics, the persistence of a number is the *number of times* one must apply...