Community Profile

# Ramy Salem

Last seen: 1 giorno fa Attivo dal 2022

#### Content Feed

Visto da

Risolto

Find the dividend
Given a vector of pairwise coprime positive integers, p, and a vector of corresponding remainders, r, return a positive integer,...

29 giorni fa

Risolto

Zero or hero
A number will be given as an input. You can be hero if it's not zero. (Just for fun)

circa un mese fa

Risolto

Identifying teenager
Suppose the age of a person is given. If he/she is a teenage, answer is 'yes'. Otherwise, the answer is 'no'.

circa un mese fa

Risolto

Calculate Angle From Axis
Given coordinates x and y, an axis ("X" or "Y"), and a direction ("cw" or "ccw", meaning clockwise and counterclockwise, respect...

circa 2 mesi fa

Risolto

Round2 Three Times Fight!
Your function should round the numbers then multyply them by 2 then repeat them three times

circa 2 mesi fa

Risolto

Pay up
You live in a world where arbitrary denominations of currency exist. You owe your friend a sum of money denoted by s. However, i...

circa 2 mesi fa

Risolto

Area under the curve
Compute area under the curve specified by points stored in y, where y is in range (0,inf) and x time step is 1. note: please r...

circa 2 mesi fa

Risolto

Latest Question On Cody
Get the problem number of the latest submitted Problem on Cody. Copying the test suite code might not help.

2 mesi fa

Risolto

List numbers that are not squares
The numbers 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, etc. are not perfect squares. Write a function to list the th term in ...

2 mesi fa

Risolto

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

2 mesi fa

Risolto

compter le nombre de zéros dans une matrice
écrire une fonction count_zeros qui prend en entrée une matrice M et détermine le nombre de zéros dans une matrice

2 mesi fa

Risolto

Determine if x is a combination of m and n
Given positive integers x, m, and n, determine if x can be written as x = am + bn for any (non-negative) integers a and b. Your ...

2 mesi fa

Risolto

Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

2 mesi fa

Risolto

Compound Interest : Future Value
Theorem : Compound Interest where, F : Future value at the end of n periods P : Present value r : Annual nominal rate n :...

2 mesi fa

Risolto

Compound Interest: Interest Rate
Theorem : Compound Interest where, F : Future value at the end of n periods P : Present value r : Annual nominal rate n :...

2 mesi fa

Risolto

Compound Interest: Present Value
Theorem : Compound Interest where, F : Future value at the end of n periods P : Present value r : Annual nominal rate n :...

2 mesi fa

Risolto

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

2 mesi fa

Risolto

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

2 mesi fa

Risolto

Dog Statistics
The vectors ht and wt contains the heights and weights of 20 golden retrievers. In some cases, it was not possible to make both ...

2 mesi fa

Risolto

The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

2 mesi fa

Risolto

Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

2 mesi fa

Risolto

Number Puzzle - 032

2 mesi fa

Risolto

Jump Search - 01
Find the number of leaps you need to take to find an element in an array using the jump search algorithm. For example, a=[ 2,...

2 mesi fa

Risolto

sinus de pulsation a
Ecrire une fonction sinat qui prend en entrée un vecteur t (de valeurs croissantes) et renvoie un vecteur y de de même dimensi...

2 mesi fa

Risolto

Définir une fonction creneau
Definr une fonction "creneau" qui prend en entrée un vecteur et renvoie la valeur 1 pour chaque élément positif du vecteur et...

2 mesi fa

Risolto

Dado um vetor V, verifique se o vetor está ordenado, retorne true ou false. Ordenado([1 2 3 4]) = true;

3 mesi fa

Risolto

Converter lista de temperaturas
Dada uma lista de temperaturas em Fahrenheit,retorne um vetor com os valores convertidos para Celcius.

3 mesi fa

Risolto

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 mesi fa

Risolto

GCD

3 mesi fa

Risolto

King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

3 mesi fa