Resuelto


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 ...

alrededor de 5 años hace

Resuelto


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

alrededor de 5 años hace

Resuelto


find the 'M'
for an input x, return 1 at the location of the letter 'M'

alrededor de 5 años hace

Resuelto


wipe out!
make all the elements in given x zero.

alrededor de 5 años hace

Resuelto


Polar Form Complex Number Entry
Write a function that takes the magnitude and angle(in degrees) of a complex number and returns a complex variable. Positive ang...

alrededor de 5 años hace

Resuelto


find the answer

alrededor de 5 años hace

Resuelto


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

alrededor de 5 años hace

Resuelto


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

alrededor de 5 años hace

Resuelto


Determine the factorial of a number

alrededor de 5 años hace

Resuelto


factorial
calculate x!

alrededor de 5 años hace

Resuelto


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

alrededor de 5 años hace

Resuelto


"Find out the best cricket"
This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...

alrededor de 5 años hace

Resuelto


I'm going to enjoy watching you calculate, Mr Anderson
Smith numbers are numbers such that if you add up all of the digits in the number, that sum equals the sum of all of the digits ...

alrededor de 5 años hace

Resuelto


I've got the power! (Inspired by Project Euler problem 29)
Consider all integer combinations of a^b and b^a for the integer values 2 ≤ a ≤ 4 and 2 ≤ b ≤ 5: 2^2=4, 2^3=8, 2^4=16,...

alrededor de 5 años hace

Resuelto


Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

alrededor de 5 años hace

Resuelto


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

alrededor de 5 años hace

Resuelto


preventing a war!!
essume you are a student and your family paid a lot of money for your classes but unfortunately the online classes made you a ...

alrededor de 5 años hace

Resuelto


Find the number of days in a given year
Given a year number (eg. 2000) as input, find how many days are there in the given year.

alrededor de 5 años hace

Resuelto


Function - Cylinder Surface Area
The goal

alrededor de 5 años hace

Resuelto


Find the sum of the following series
A(n)=(n*(n-1)!)/(n-2)!

alrededor de 5 años hace

Resuelto


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

alrededor de 5 años hace

Resuelto


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, ...

alrededor de 5 años hace

Resuelto


Generate pi using logarithm
Generate pi using logarithm

alrededor de 5 años hace

Resuelto


Remove the middle element from a vector
Remove the middle element of a vector? *Example:* [1,2,3] should return 2 [1,2,3,4] should return 2 [] should return...

alrededor de 5 años hace

Resuelto


Brain Teaser Solver
Write an algorithm to solve this brain teaser: You have a square that is broken into four triangles, the area of three of tho...

alrededor de 5 años hace

Resuelto


Write a function to generate AND operation

alrededor de 5 años hace

Resuelto


Sum of self power series
The series, 1^1,2^2,3^3,4^4,.... Find the sum of such series when x terms are given.

alrededor de 5 años hace

Resuelto


Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

alrededor de 5 años hace

Resuelto


Fractal: area and perimeter of Koch snowflake
Starting from an equilateral triangle with side 's', what is the area and perimeter of Koch snowflake at n'th recursive iteratio...

alrededor de 5 años hace

Resuelto


Make a rainbow matrix (follow-up to checkerboard matrix)
Given an integer n, make an n-by-n matrix as shown below. The a(1,1) should be 0. As we move away from the top-left, the number ...

alrededor de 5 años hace

Cargar más