A résolu


Low level NaN
I have a dataset. Columns represents different variables. A variable may start with NaN or any double type number. If it start...

presque 3 ans il y a

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

presque 3 ans il y a

A résolu


Harmonic series counting
The function takes a positive limit as input, And counts how many terms must be summed in the harmonic series: 1/1, 1/2, 1/3, ...

presque 3 ans il y a

A résolu


Slope intercept application
Find y given slope (m), x, and y intercept (b).

presque 3 ans il y a

A résolu


Zero finder
Write a function named 'zero_finder' that takes a matrix as input and returns the row index of the last zero for each for each c...

presque 3 ans il y a

A résolu


Knight Moves?
One of my favorite games are chess. Let’s do something with chess. If you don’t know chess, that’s completely fine. You can stil...

presque 3 ans il y a

A résolu


Play with array Min-Max
An array is provided. For example, a= [ 2,1,11,4,5,13] Create an array from a like this way, out= [ 1,11,2,13,4,5] ➢ 1st take...

presque 3 ans il y a

A résolu


Given a matrix X, manipulate it accordingly
Given a matrix X, 1st add a column to the matrix whose elements are the summation of each rows. Then add a row to the matrix who...

presque 3 ans il y a

A résolu


Armstrong Number
Write a function name armstrong_check that checks whether the given input is an Armstrong Number or not. It returns logical True...

presque 3 ans il y a

A résolu


Find alternating sum
Given an array, find alternating sum i.e. – y = x (1) – x (2) + x (3) – x (4) + x (5) - …

presque 3 ans il y a

A résolu


Extract the prime numbers
Given a list of elements, extract the prime numbers from that array.

presque 3 ans il y a

A résolu


An array is given that contains the marks. Find out the highest 3 marks
An array is given that contains the marks received by a group of students in their class test. Find out the highest 3 marks rec...

presque 3 ans il y a

A résolu


An array is given. Find the unique elements of the array. [keep the sequence unchanged]
An array is given. Find the unique elements of the array. [keep the sequence unchanged] For example if input x=[2 ,4 , 9 ,2 ,...

presque 3 ans 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...

presque 3 ans il y a

A résolu


What's for Lunch?
Given b choices of beverages, e choices of entrees, s choices of sides (take two different sides total) and d choices of dessert...

presque 3 ans il y a

A résolu


Determine the roots of a cubic equation
Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.

presque 3 ans il y a

A résolu


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

presque 3 ans il y a

A résolu


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

presque 3 ans il y a

A résolu


Recursion at variable input
input of any length a =2 b =2 c =3 output = (a^b)^c = 64

presque 3 ans il y a

A résolu


DC-DC boost converter
Find the output voltage of a DC-DC boost converter given input voltage and the duty cycle ratio

presque 3 ans il y a

A résolu


Determine if a four bar mechanism is of Grashof type
A four bar mechanism is composed of four links. if s is the smallest link, l the longest and p,q are the length of the other lin...

presque 3 ans il y a

A résolu


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

presque 3 ans il y a

A résolu


Shorten pathname
Given a pathname string, return a condensed version by replacing intermediate folders with '..'. *Example* If fullpat...

presque 3 ans il y a

A résolu


Circle : Square

presque 3 ans il y a

A résolu


Deriving a function using the difference quotient
Write a function that evaluates the derivative of a function in a given point using the well-know formula of the difference quot...

presque 3 ans il y a

A résolu


Test within tolerance
Given a vector of experimental data, D, and a vector of truth data, T, return FALSE if any +/- errors (D-T) are outside a given ...

presque 3 ans il y a

A résolu


is the number happy?
test is a given integer number is Happy of not? answer 1 if yes or 0 is no

presque 3 ans il y a

A résolu


Free-time Equation
Given a 7-day week, an *_nc_* -number of *_tc_* -hour classes, *_ta_* -hours awake in a day, and *_tw_* -hours that you work in ...

presque 3 ans il y a

A résolu


Compute the harmonic numbers
The nth <https://mathworld.wolfram.com/HarmonicNumber.html harmonic number> is defined as the sum of the reciprocals of the inte...

presque 3 ans il y a

A résolu


Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

presque 3 ans il y a

Charger plus