Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n.
For example:
v=[1 2 3 4 5 6]
n=3
vNew =...
Calculate the square root
Given an input integer x, calculate the square root without using the sqrt function.
3年弱 前
解決済み
Juros Simples
Faça uma função que calcule o montagem de um investimento com juros simples que receba como argumentos o capital inicial C, a ta...
3年弱 前
解決済み
Lista Ordenada
Dado um vetor V, verifique se o vetor está ordenado, retorne true ou false.
Ordenado([1 2 3 4]) = true;
3年弱 前
解決済み
Remove Repetidos e Ordena
Dado um vetor A, remove todos os valores repetidos deixando apenas 1 valor, e ordene o vetor.
RemoveRepetidosEOrdena([1 1 2 3])...
3年弱 前
解決済み
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 ...
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...
3年弱 前
解決済み
Bit to Gigabyte
1 bit =
1.25 × 10^-10 gigabytes | x is bit | y is gigabyte
Mathematical formula
Find the value of the expression given the values of variables t and k. Assume g=9.81
3年弱 前
解決済み
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 ...
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...
3年弱 前
解決済み
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...
3年弱 前
解決済み
Find Min and Max Differences in a Vector
Given an array of integers, return the absolute largest and smallest (non zero) difference between any two numbers in the array....