Solved

Wheat on a chessboard pt 2

If a chessboard were to have wheat placed upon each square such that x grains were placed on the first square and each successiv...

21 giorni ago

Solved

Check if any duplicates in your data

Given an array x, return a number n equal to the largest number of repetitions in your data. For example: If x=[1 2 3 6 8 4 9]...

21 giorni ago

Solved

chance in percent for minimum K heads when a good coin is tossed N times?

For example, chance is 100% for minimum 0 heads when a coin is tossed 7 times. Chance is 50% for minimum 2 heads when a coin is...

21 giorni ago

Solved

collision

several cars (n) were involved in this collision, the input matrix (vm) has n rows and two columns, first column for velocity an...

22 giorni ago

Solved

Kelvin to Fahrenheit

You can find a doc about it in here => https://www.rapidtables.com/convert/temperature/how-kelvin-to-fahrenheit.html x is kelvi...

22 giorni ago

Solved

Given A4 sizes find A3's long side

I think you know the relation between A3 and A4 paper so givens are sides of A4 x1=long side of A4 y1=short side of A4 y2 is ...

22 giorni ago

Solved

Determine whether a number is a fibodiv number

The number 14 is a fibodiv number because you can divide it into 1 and 4, use those numbers as the seeds for a Fibonacci sequenc...

22 giorni ago

Solved

concatenate the elements

you should concatenate the elements of a matrix in one dimensional array, for example if the input is A = [1 2 3; 4 5 6; 7 ...

22 giorni ago

Solved

determine the sum of the squares

if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

22 giorni ago

Solved

Sum of self power series

The series, 1^1,2^2,3^3,4^4,.... Find the sum of such series when x terms are given.

22 giorni ago

Solved

Convert a given Character to its decimal equivalent value

Convert a given character to its decimal equivalent value according to the ascii table. if x = '!'; y = 33; if x = 'u'; ...

22 giorni ago

Solved

How many days does the cat take to climb out of the hole?

A cat accidentally falls down a hole with sloping but rough sides. It can climb out of the hole of height h metres, but for ever...

23 giorni ago

Solved

Solve the set of simultaneous linear equations

Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

23 giorni ago

Solved

~~~~~~~ WAVE ~~~~~~~~~

|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

23 giorni ago

Solved

Mathematical formula

Find the value of the expression given the values of variables t and k. Assume g=9.81

23 giorni ago

Solved

Function substitution (2)

Evaluate the function for the given values of the variables N and t

23 giorni ago

Solved

Function substitution (1)

Evaluate the function for the given values of the variables N and t

23 giorni ago

Solved

Array Concatenation (2)

Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

23 giorni ago

Solved

Array Concatenation (1)

Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

23 giorni ago

Solved

Travel time

Calculate the time (in hours) it takes a car traveling at a given uniform speed of s km/hour to travel a distance of d km. For i...

23 giorni ago

Solved

Average of two numbers

Find the average of two numbers x1 and x2. For instance, if x1=7 and x2=19, the answer is 13.

23 giorni ago

Solved

Average of five numbers

Find the average of a set of five numbers {x1,x2,x3,x4,x5}

23 giorni ago

Solved

Resistance of a light bulb

The current through two identical light bulbs connected in series is C Amperes. The total voltage across both bulbs is V Volts....

27 giorni ago

Solved

Calculate Parallel Resistance

Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...

27 giorni ago

Solved

Vector Magnitude Calculator

'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

27 giorni ago

Solved

union without repitition

Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

27 giorni ago

Solved

Back to basics 13 - Input variables

Covering some basic topics I haven't seen elsewhere on Cody. Return as a string the name of the input variable to the functio...

29 giorni ago

Solved

vectors counting by 5

Create a vector with numbers from x_min to x_max in increments of 5.

29 giorni ago