since Mar 27, 2010

Cows and Likes

Cows

Total received

0

In last 30 days

0

Total given

0

Likes

Total received

0

Received in last 30 days

0

Total given

0

Given in last 30 days

0

Forums and Threads

Scavenger Hunt

Ranch Hand Scavenger Hunt

Greenhorn Scavenger Hunt

An array is zero-plentiful if it contains at least one 0 and every sequence of 0s is of length at least 4.

9 years ago

A number can be encoded as an integer array as follows. The first element of the array is any number and if it is negative then the encoded number is negative. Each digit of the number is the absolute value of the difference of two adjacent elements of the array. The most significant digit of the number is the absolute value of the difference of the first two elements of the array. For example, the array {2, -3, -2, 6, 9, 18} encodes the number 51839 because

· 5 is abs(2 - (-3))

· 1 is abs(-3 - (-2))

· 8 is abs(-2 - 6)

· 3 is abs(6-9)

· 9 is abs(9-18)

The number is positive because the first element of the array is >= 0.

· 5 is abs(2 - (-3))

· 1 is abs(-3 - (-2))

· 8 is abs(-2 - 6)

· 3 is abs(6-9)

· 9 is abs(9-18)

The number is positive because the first element of the array is >= 0.

9 years ago

A number n>0 is called cube-powerful if it is equal to the sum of the cubes of its digits. using java array

9 years ago

Define the n-based integer rounding of an integer k to be the nearest multiple of n to k. using java array

9 years ago