문제를 풀었습니다


Say type of roots in quadratic equation
Given the coefficients of a quadratic equation, write a function that gives the output y='RealDifferent' if the roots are real a...

12개월 전

문제를 풀었습니다


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

12개월 전

문제를 풀었습니다


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

12개월 전

문제를 풀었습니다


Finding two missing number in 1 to n array
You are given an array of numbers from 1 to n with two missing numbers. Return the two missing numbers. Input: x=[5 2 0 1 ...

12개월 전

문제를 풀었습니다


¡Busca el extremo!
Crea una función que calcule el extremo de una parábola (máximo o mínimo absoluto) cuyos datos son proporcionados por el usuario...

12개월 전

문제를 풀었습니다


X plus binary inverted x
Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...

12개월 전

문제를 풀었습니다


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

12개월 전

문제를 풀었습니다


Calculate the volume of the football

12개월 전

문제를 풀었습니다


Minimum Maximum Sort Array
sort one array by put minimum value followed by maximum as follow a=[2 3 1 5] and the solution is y=[1 5 2 3 3 2 5 1];

12개월 전

문제를 풀었습니다


How to permute given 3d matrix?
A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

12개월 전

문제를 풀었습니다


Previous Palindrome

12개월 전

문제를 풀었습니다


Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

12개월 전

문제를 풀었습니다


Primes Checker
Given variable inputs Check if they are prime numbers

12개월 전

문제를 풀었습니다


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0; 0...

12개월 전

문제를 풀었습니다


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

12개월 전

문제를 풀었습니다


Concatenated roots
Which is the value of this infinte concatenated roots? <<https://s27.postimg.org/i4hkin7xf/Code_Cogs_Eqn.gif>> Note: If ...

12개월 전

문제를 풀었습니다


Compound interest - number e
A moneylender wants to receive his annual interest of 12% more frequently. If he receives his interest rate every six months,...

12개월 전

문제를 풀었습니다


Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

12개월 전

문제를 풀었습니다


Simple Interest : Calculate Future Value
Theorem : Simple Interest where; F : Future Value P : Present Value r : Annual simple interest rate (decimal) t : Time in...

12개월 전

문제를 풀었습니다


edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

12개월 전

문제를 풀었습니다


Angle between two vectors
Given 2 pairs of _cartesian co-ordinates_, determine the angle between the 2 vectors formed by the _points_ and the _origin_. An...

12개월 전

문제를 풀었습니다


determine amount cookies left
started with 3 cookies and you never ate any how many are left

12개월 전

문제를 풀었습니다


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

12개월 전

문제를 풀었습니다


Distance Between Points
Being n the number of points (If n = 3 there would be 3 points: A, B and C). The distance between each pair of points increases...

12개월 전

문제를 풀었습니다


Number of o rderd pairs of integers (I,J) that can be formed.
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the condit...

12개월 전

문제를 풀었습니다


Ordered pairs of integers (I, J).
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the conditi...

12개월 전

문제를 풀었습니다


Calculate vowel / consonant ratio of a string
Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

12개월 전

문제를 풀었습니다


Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...

12개월 전

문제를 풀었습니다


short or buy ? take the opportunity
you had already calculated a theoretical stock value, now you checked in bloomberg the quoted price of that stock and you have t...

12개월 전

문제를 풀었습니다


Monkey and the Peaches
A monkey picked a certain number of peaches on the first day. Each day, the monkey eats half of the remaining peaches plus one ...

12개월 전

더 보기