Resuelto


Calculating the Total Resistance in a Series Circuit
Description: In a series circuit, the total resistance is the sum of the individual resistances. This problem asks you to write ...

más de 1 año hace

Resuelto


Simple Electrical Power Calculation
Calculate the electrical power using the formula: P=V×I where: V is the voltage (in volts) I is the current (in amperes)

más de 1 año hace

Resuelto


Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I​ where: V is the voltage (in volts) I is the current (in ampere...

más de 1 año hace

Resuelto


Parasitic numbers
Test whether the first input x is an n-parasitic number: <http://en.wikipedia.org/wiki/Parasitic_number>. ( _n_ is the second in...

más de 1 año hace

Resuelto


Determine the Anti-diagonal of a Magic Square
Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

más de 1 año hace

Resuelto


Find Missing Number
A little problem (inspired by CodeChef) for the coffee break. A friend give you an array of size n-1 integers and these int...

más de 1 año hace

Resuelto


Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable

más de 1 año hace

Resuelto


How many monitors are connected ?
How to obtain the numbers of monitors connected to your computer ?

más de 1 año hace

Resuelto


Find the mean of the magic x
Given a x term, find the magic x, then find the mean/average of any one row or column.

más de 1 año hace

Resuelto


Draw '5' in Chinese.
Draw a x-by-x matrix '五' using 1s and 0s. Example: x=5 ans= [1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 1 1] x=7...

más de 1 año hace

Resuelto


Calculate the Voltage Through a Step-Up Transformer
Given a step-up transformer has a primary coil with A number loops, a secondary coil with B number loops, and a primary voltage ...

más de 1 año hace

Resuelto


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

más de 1 año hace

Resuelto


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

más de 1 año hace

Resuelto


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

más de 1 año hace

Resuelto


Matrix Max Finder
Output the maximum value in a matrix

más de 1 año hace

Resuelto


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

más de 1 año hace

Resuelto


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

más de 1 año hace

Resuelto


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

más de 1 año hace

Resuelto


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

más de 1 año hace

Resuelto


Values in Array
How many values are in the array

más de 1 año hace

Resuelto


COUNT VOWEL
Count, how many times vowels occurred. EXAMPLE: x='string the MaTLaBiAn' then the answer will be 6. x='coUnt the vowEl' th...

más de 1 año hace

Resuelto


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...

más de 1 año hace

Resuelto


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

más de 1 año hace

Resuelto


Sort a vector

más de 1 año hace

Resuelto


Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

más de 1 año hace

Resuelto


Sum multiples

más de 1 año hace

Resuelto


F-score

más de 1 año hace

Resuelto


Solve the recursion
Solve the recursion: f(n)=f(n-1)+1 + f(n-2)+2. f(1)=4; f(2)=8;

más de 1 año hace

Resuelto


Mean Square Error

más de 1 año hace

Resuelto


Divisors

más de 1 año hace

Cargar más