A résolu


Edges of a n-dimensional Hypercube
Return the number of edges on an <http://en.wikipedia.org/wiki/Hypercube _n_-dimensional hypercube> (with an integer n &ge; 0). ...

presque 6 ans il y a

A résolu


Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

presque 6 ans il y a

A résolu


Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

presque 6 ans il y a

A résolu


Sum sum!!!
Sum the numbers from 1 to n

presque 6 ans il y a

A résolu


Triangle???
Calculate the circumference of an equilateral triangle with x

presque 6 ans il y a

A résolu


easy problem
Find the last element of the array

presque 6 ans il y a

A résolu


Find the max element of the array
Find the max element of the array

presque 6 ans il y a

A résolu


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

presque 6 ans il y a

A résolu


find the height

presque 6 ans il y a

A résolu


PIN code

presque 6 ans il y a

A résolu


Insert zeros II

presque 6 ans il y a

A résolu


Double the length of the vector

presque 6 ans il y a

A résolu


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

presque 6 ans il y a

A résolu


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

presque 6 ans il y a

A résolu


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

presque 6 ans il y a

A résolu


Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal. INPUT: a, a n x n matrix OUTPUT: true or false

presque 6 ans il y a

A résolu


Factorize uniquely! (★★)

presque 6 ans il y a

A résolu


Find sum of numbers on the cornice of a matrix.

presque 6 ans il y a

A résolu


Orthonormal matrix
You decide whether any given matrix is an orthonormal matrix or not. If each column in a matrix is perpendicular to the other...

presque 6 ans il y a

A résolu


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

presque 6 ans il y a

A résolu


Product of Array
Given an array of numbers. Get the product of the array.

presque 6 ans il y a

A résolu


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

presque 6 ans il y a

A résolu


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

presque 6 ans il y a

A résolu


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

presque 6 ans il y a

A résolu


Log of a number
Write a script that will give the log of x as output.

presque 6 ans il y a

A résolu


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

presque 6 ans il y a

A résolu


Modulo with 5

presque 6 ans il y a

A résolu


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

presque 6 ans il y a

A résolu


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

presque 6 ans il y a

Charger plus