Feeds
문제를 풀었습니다
Geometric Series
Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.
거의 8년 전
문제를 풀었습니다
Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.
거의 8년 전
문제를 풀었습니다
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
거의 8년 전
문제를 풀었습니다
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
거의 8년 전
문제를 풀었습니다
Even or Odd
Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...
거의 8년 전
문제를 풀었습니다
what is the speed of the car if the car travelled 10m in 5 seconds
what is the speed of the car if the car travelled 10m in 5 seconds
거의 8년 전
문제를 풀었습니다
Area of square
find the area of the square, whose length of diagonal is given as x.
거의 8년 전
문제를 풀었습니다
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
거의 8년 전
문제를 풀었습니다
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
거의 8년 전
문제를 풀었습니다
Function definition: Volume of a pyramid
Define a function CalculatePyramidVolume with inputs baseLength, baseWidth, and pyramidHeight. The function returns pyramidVolum...
거의 10년 전
문제를 풀었습니다
the function, the box of boxer briefs, being twice the amount being manufactured twice as much x
return y as the function multiplied by x twice
거의 10년 전
문제를 풀었습니다
Double colon operator: Increment by x
* Construct a row array countValues from 0 to 25, elements incremented by incrementValue. Ex: If incrementValue is 5, countVa...
거의 10년 전
문제를 풀었습니다
Function definition: Double down.
* Complete the DoubleDown function to return twice the initialValue.
거의 10년 전
문제를 풀었습니다
Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'
거의 10년 전