Gelöst


Smallest n, for n! to have m trailing zero digits
For given positive integer n, its factorial often has many trailing zeros, in other words many factors of 10s. In order for n! t...

etwa ein Jahr vor

Gelöst


Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

etwa ein Jahr vor

Gelöst


The number of trailing zero digit of a factorial
For given positive integer n, take factorial of that number. How many trailing zeros does it have? Example: factorial(11) = 3...

etwa ein Jahr vor

Gelöst


The last non-zero digit of a factorial
For given positive integer n, what is the last non-zero digit of n!? Example: factorial(11) = 39916800 Last non-zero d...

etwa ein Jahr vor

Gelöst


Calculate the sum of first x natural numbers
Calculate the sum of first x natural numbers for example if n=10 output =1+2+..+10=55

etwa ein Jahr vor

Gelöst


Summing the last column column
Given a matrix, return the sum of the last column of the array.

etwa ein Jahr vor

Gelöst


Return part of an array
Given a 5x5 array, return a 3x3 array that contains the cells that are not on the edge of the array: Given this array Return...

etwa ein Jahr vor

Gelöst


Count integers in randomized vector that are multiples of a given number.
The mod() function We might all remember the days when we were taught to divide and then set the remainder aside if the numbers...

etwa ein Jahr vor

Gelöst


are you excited to code today????
simply answer yes or no

etwa ein Jahr vor

Gelöst


Sum the prime numbers from 1-100
Write a function to sum up the prime numbers from 1-100.

etwa ein Jahr vor

Gelöst


Determine if a number is a cool number
A number is considered cool if it is 3 digits, has a 5 in it, and is divisible by 4.

etwa ein Jahr vor

Gelöst


Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...

etwa ein Jahr vor

Gelöst


Palindrome vector
Check if a given vector is Palindrome. Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]

etwa ein Jahr vor

Gelöst


Sum of squares
Given a number n, return the sum of squares of all integers from 1 to n.

etwa ein Jahr vor

Gelöst


nxn matrix with elements from 1:n^2
really simple once you see what the matrix is supposed to look like. i appreciate what seems to be a clever approach to solving ...

etwa ein Jahr vor

Gelöst


add 9 to x
add 9 to x

etwa ein Jahr vor

Gelöst


add 11 to x
add 11 to x

etwa ein Jahr vor

Gelöst


yo
yo

etwa ein Jahr vor

Gelöst


no
no

etwa ein Jahr vor

Gelöst


yo
yo

etwa ein Jahr vor

Gelöst


no
no

etwa ein Jahr vor

Gelöst


yo
yo

etwa ein Jahr vor

Gelöst


Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = 2...

etwa ein Jahr vor

Gelöst


A quadrant matrix
Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

mehr als ein Jahr vor

Gelöst


Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.

mehr als ein Jahr vor

Gelöst


UICBioE240 problem 1.8
Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class. ...

mehr als ein Jahr vor

Gelöst


Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

mehr als ein Jahr vor

Gelöst


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

mehr als ein Jahr vor

Gelöst


Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

mehr als ein Jahr vor

Mehr laden