Problem


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

mehr als 14 Jahre vor | 19 | 2052 Lösungsvorschläge

Problem


Geometric series
Find the sum, given the first term t1, the common ratio r, and number of terms n. Examples If input t1=1, r=1, n=7 the...

mehr als 14 Jahre vor | 2 | 286 Lösungsvorschläge

Problem


Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

mehr als 14 Jahre vor | 3 | 198 Lösungsvorschläge

Problem


DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...

mehr als 14 Jahre vor | 1 | 183 Lösungsvorschläge

Problem


Filter AC, pass DC
Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

mehr als 14 Jahre vor | 2 | 360 Lösungsvorschläge

Problem


Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...

mehr als 14 Jahre vor | 2 | 451 Lösungsvorschläge

Problem


surface of a spherical planet
you just discovered its circumference, that is the input.

mehr als 14 Jahre vor | 5 | 996 Lösungsvorschläge

Problem


Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

mehr als 14 Jahre vor | 4 | 290 Lösungsvorschläge

Problem


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

mehr als 14 Jahre vor | 21 | 2559 Lösungsvorschläge

Gelöst


Half?
If you toss an even number (x) of coins, what is the probability (y) of 50% head and 50% tail?

mehr als 14 Jahre vor

Problem


Half?
If you toss an even number (x) of coins, what is the probability (y) of 50% head and 50% tail?

mehr als 14 Jahre vor | 1 | 246 Lösungsvorschläge

Problem


newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.

mehr als 14 Jahre vor | 1 | 92 Lösungsvorschläge

Gelöst


newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.

mehr als 14 Jahre vor

Gelöst


pressure to dB?
given x ratio of pressure, find corresponding y dB

mehr als 14 Jahre vor

Problem


pressure to dB?
given x ratio of pressure, find corresponding y dB

mehr als 14 Jahre vor | 1 | 500 Lösungsvorschläge

Gelöst


Which quadrant?
Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

mehr als 14 Jahre vor

Problem


Which quadrant?
Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

mehr als 14 Jahre vor | 2 | 369 Lösungsvorschläge

Gelöst


Tune your guitar
Given an input string with the scientific pitch notation for standard tuning ( <http://en.wikipedia.org/wiki/Guitar_tunings#Stan...

mehr als 14 Jahre vor

Gelöst


Is my wife right?
Regardless of input, output the string 'yes'.

mehr als 14 Jahre vor

Gelöst


Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...

mehr als 14 Jahre vor

Gelöst


chirp again
rise frequency linearly from 0 to frequency f in 1 second and fs samples, initial amplitude must rise smoothly like an aircraft ...

mehr als 14 Jahre vor

Gelöst


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

mehr als 14 Jahre vor

Gelöst


Angle of triangle
For three unknown points a b c, given three sides ab bc ca, find three angles abc bca cab in radians. Your function should b...

mehr als 14 Jahre vor

Gelöst


Read a Soroban Abacus
*Description* The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...

mehr als 14 Jahre vor

Gelöst


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

mehr als 14 Jahre vor

Gelöst


Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.

mehr als 14 Jahre vor

Problem


Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.

mehr als 14 Jahre vor | 2 | 322 Lösungsvorschläge

Gelöst


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

mehr als 14 Jahre vor

Gelöst


give nth decimal place of pi
max 15th place after the decimal point is ok for now

mehr als 14 Jahre vor

Problem


give nth decimal place of pi
max 15th place after the decimal point is ok for now

mehr als 14 Jahre vor | 1 | 423 Lösungsvorschläge

Mehr laden