A résolu


How to add?
* Imagine you are in 2222 Anno Domini, when everyone must learn how to add, * and competing for the highly prestigious post of,...

plus de 7 ans il y a

A résolu


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

plus de 7 ans il y a

A résolu


Given n, create n random numbers such that their standard deviation is also n.
Given n, create n random numbers such that their standard deviation is also n.

plus de 7 ans il y a

A résolu


Find the outlier in a set of samples
Given an array x of numbers. Assumed that this array has one outlier. Find the position p and the value v of the outlier in this...

plus de 7 ans il y a

A résolu


Minimum possible M of the maximum side of a triangle of given area A.
Suppose a triangle has area A. Suppose it has three sides S1, S2, and S3. Suppose M = max([S1 S2 S3]). What is the minimum po...

plus de 7 ans il y a

A résolu


Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

plus de 7 ans il y a

A résolu


Check if any duplicates in your data
Given an array x, return a number n equal to the largest number of repetitions in your data. For example: If x=[1 2 3 6 8 4 9]...

plus de 7 ans il y a

A résolu


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

plus de 7 ans il y a

A résolu


Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

plus de 7 ans il y a

A résolu


Recaman Sequence - II
Take an arbitrary starting point as input and create Recaman Sequence. Then find the 1, return its index. For example: if n =...

plus de 7 ans il y a

A résolu


Recaman Sequence - I
Recaman Sequence (A005132 - <http://oeis.org/A005132 - OEIS Link>) is defined as follow; seq(0) = 0; for n > 0, seq(n) ...

plus de 7 ans il y a

A résolu


The Deadly Sin
Melvyn and Banner are fighting over chocolates. Melvyn has X chocolates, while Banner has Y. Whoever has a lesser number of choc...

plus de 7 ans il y a

A résolu


newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.

plus de 7 ans il y a

A résolu


Make an N-dimensional Multiplication Table
*INSTRUCTIONS* This is a multi-dimensional variant of the normal multiplication table used to teach elementary students multi...

plus de 7 ans il y a

A résolu


Figurate number triangle
Check whether the input matrix is a figurate number triangle: <http://mathworld.wolfram.com/FigurateNumberTriangle.html>

plus de 7 ans il y a

A résolu


Find parts of a circle.
Given radius (r) of a circle find the diameter (d), circumference (c), an area (a).

plus de 7 ans il y a

A résolu


Sum of diagonals
Compute the sum of diagonal elements of a square matrix and store the larger sum to s. Eg : a = [1 2 3; 2 3 4; 4 5 10] ...

plus de 7 ans il y a

A résolu


'Absolute value'
Create a function called own_abs, which is the absolute number entered as the input return value.

plus de 7 ans il y a

A résolu


Calculate mean value of any pair in a vector.
Given a vector A, calculate the mean of 2 number in the vector one by one. example: input: A=[1, 5, 6, 8, 9, 15] output:...

plus de 7 ans il y a

A résolu


Outlier number!
Find a number which has maximum distance from the mean value of vector A. Example: A=[5 2 1 5 6 2 5 9] y=9

plus de 7 ans il y a

A résolu


Prime numbers between a , b.
Find all prime number between a & b (including a and b). example: a=100 b=120 y= [101 103 107 109 113]

plus de 7 ans il y a

A résolu


Basics: counting digits of a number irrespective of the sign
publish the number of digits in any input integer example: -23---->2

plus de 7 ans il y a

A résolu


convert the number to binary format & count digits
Convert the given number to the corresponding binary format and count the number of digits in that binary number

plus de 7 ans il y a

A résolu


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

plus de 7 ans il y a

A résolu


how many of the entries are positive?
Given x= sin(linspace(0,10*pi,100)), how many of the entries are positive?

plus de 7 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 7 ans il y a

A résolu


Pizza order
A pizza order by phone in diameter d1, pizza will be make only in diameter d2. Return the pizza pieces p should be make.(pizza ...

plus de 7 ans il y a

A résolu


Amicable numbers
Test whether two numbers are <https://en.wikipedia.org/wiki/Amicable_numbers amicable>, meaning that the sum of the proper divis...

plus de 7 ans il y a

A résolu


You never ask a lady her age
Instead you ask her to multiply her age by 10, then subtract any of the first nine multiples of 9 (9,18,...,81), and tell you th...

plus de 7 ans il y a

A résolu


Project Euler: Problem 14, Longest Collatz sequence
The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) U...

plus de 7 ans il y a

Charger plus