解決済み


sign function

3年以上 前

解決済み


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

3年以上 前

解決済み


Return the sequence element II
Given positive integers x and n, return a positive integer, y, which is the nth term in the <https://en.wikipedia.org/wiki/Juggl...

3年以上 前

解決済み


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

3年以上 前

解決済み


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

3年以上 前

解決済み


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

3年以上 前

解決済み


Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

4年弱 前

解決済み


Sequence
Let S be a sequence of numbers Let Find for some , where and .

4年弱 前

解決済み


step function

4年弱 前

解決済み


easy problem
Find the last element of the array

4年弱 前

解決済み


Summation of integers

4年弱 前

解決済み


Chain multiplication - 03
Following up the problem in 55305, you found the minimum number of multiplications needed to multiply a chain of matrices. In ...

4年弱 前

解決済み


Chain multiplication - 04
Following up on the problem in 55305, you found the optimal way to multiply a chain of matrices. However, here in this problem,...

4年弱 前

解決済み


Sideways sum
Given natural number calculate its _population count_.

4年弱 前

解決済み


Weighted average
Given two lists of numbers, determine the weighted average as follows Example [1 2 3] and [10 15 20] should result in 33.3...

4年弱 前

解決済み


The Tortoise and the Hare - 01
Suppose in an infinitely long line, the hare is standing in position 0. From that place, it can jump either in the +ve direct...

4年弱 前

解決済み


Chain multiplication - 02
Following up on the problem in 55295, you found the number of multiplications needed to multiply two matrices. Now, you are giv...

4年弱 前

解決済み


Mass Conversion 1

4年弱 前

解決済み


Temperature Conversion 3

4年弱 前

解決済み


Temperature Conversion 2

4年弱 前

解決済み


Temperature Conversion 1

4年弱 前

解決済み


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

4年弱 前

解決済み


True engineer
Prove that pi is indeed equal to e. Return 1 by rounding pi and e to the nearest integer then asserting rounded pi and e are eq...

4年弱 前

解決済み


Minimum number of children to distribute unequal cookie portions
A cruel parent wants to distribute N cookies such that it is impossible for every child to receive the same number of cookies. W...

4年弱 前

解決済み


Monty Python and the Holy Grail: Crossing the Bridge of Death
To cross the Bridge of Death, your function must return the numerical value for the airspeed velocity of an unladen swallow

4年弱 前

解決済み


Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

4年弱 前

解決済み


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

4年弱 前

解決済み


Project Euler: Problem 4, Palindromic numbers
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

4年弱 前

解決済み


Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...

4年弱 前

解決済み


Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

4年弱 前

さらに読み込む