Community Profile

Ramy Salem

Last seen: environ un mois il y a Actif depuis 2022

Content Feed

Afficher par

A résolu

Intersection points of a polynomial
Find the intersection points of a polynomial, given by its vector of coefficients with the X-axis and the Y-axis. Input: a poly...

environ un mois il y a

A résolu

Dyck words
A Dyck word can be considered as a string of n X's and n Y's arranged to have at least as many X's in an initial segment of the ...

environ un mois il y a

A résolu

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

3 mois il y a

A résolu

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

3 mois il y a

A résolu

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

3 mois il y a

A résolu

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

3 mois il y a

A résolu

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

3 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

Number Puzzle - 032

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a