Solved


Function substitution (2)
Evaluate the function for the given values of the variables N and t

1 month ago

Solved


Function substitution (1)
Evaluate the function for the given values of the variables N and t

1 month ago

Solved


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

1 month ago

Solved


Easy Sequences 71: A Nonlinear Function with Quadratic Domain
Consider the function: The outputs of this function are fed as domain to another function: ...

1 month ago

Solved


Fun with matrix
Design a sample matrix as given in the test cases

1 month ago

Solved


Find the remainder - 02
Given an array of integers, find the remainder when the summation of all the elements is divided by N

1 month ago

Solved


Find the remainder - 01
Given an array of integers, find the remainder when the product of all the elements is divided by N

1 month ago

Solved


Congruent
Given two numbers, check whether they are congruent to each other or not for a particular value N.

1 month ago

Solved


Quaternions to Rotation Matrices
Given a matrix of Quaternions (along the rows), output a 3D matrix of Rotation Matrices.

1 month ago

Solved


Rotation Matrix to Euler Angles
Given a rotation matrix, generate the Euler Angles as output [phi,theta,psi]. [phi is a rotation around X-axis, theta is rotatio...

1 month ago

Solved


Easy Sequences 70: Inflection Points of Binomial Product Function
Inflection points are points along the graph curve of a function, where the curvature of the curve changes from concave to conve...

1 month ago

Solved


Chain multiplication - 05
Following up on the problem in 55305, you found the optimal way of multiplying a chain of matrices. In problem 55315, you had t...

1 month ago

Solved


Mathematical formula
Find the value of the expression given the values of variables t and k. Assume g=9.81

1 month ago

Solved


Convert a given Character to its decimal equivalent value
Convert a given character to its decimal equivalent value according to the ascii table. if x = '!'; y = 33; if x = 'u'; ...

1 month ago

Solved


Magical Land
Mother Earth has gifted humanity a magical land to help all life on earth, in the shape of a n-sided regular polygon. You, bein...

1 month ago

Solved


Solutions to Generalized Pell Equation or Quadratic Diophantine
The generalized Pell equation is of the form: . Given D and N as inputs, output the first 50 positive integer solutions [x, y] s...

1 month ago

Solved


Convert Periodic Continued Fraction to Fractional Radical Representation
Every periodic continued fraction can be prepresented by a number of the form where p, q, and d are all integers with d>0, , an...

1 month ago

Solved


increasing sequences
Given a string of digits, insert commas to create a sequence of strictly increasing numbers so as to minimize the magnitude of t...

1 month ago

Solved


Chain multiplication - 04
Following up on the problem in 55305, you found the optimal way to multiply a chain of matrices. However, here in this problem,...

1 month ago

Solved


Chain multiplication - 03
Following up the problem in 55305, you found the minimum number of multiplications needed to multiply a chain of matrices. In ...

1 month ago

Solved


Sort Non-zeros
Consider 0s in a vector creates a break-point. sort all the sub-arrays created by those break points. For example, a = [3, 4, 1...

1 month ago

Solved


Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

1 month ago

Solved


Cut the rod
A rod of length n can be cut in different sizes. Different price is associated with different length of cuts. length, len= [1,...

1 month ago

Solved


Number of leaps in binary search
Binary search is one of the most popular searching algorithms (Binary Search Algorithm). It works only in a sorted array. It uti...

1 month ago

Solved


Parametric Array
Create a row vector, 1xN (Integer, >1), such that the mean of the vector is M (Real number) and the standard deviation of the ...

1 month ago

Solved


Determine whether one vector is a subset of another
While bumbling through a pair of problems in the Number Theory group, I wrote code to determine whether a vector is a subset of ...

1 month ago

Solved


Scorer's Function
Evaluate the Scorer's function for a given input. The expected output is Gi(x). Note - The precision will vary for test cases...

1 month ago

Solved


Sequence
Let S be a sequence of numbers Let Find for some , where and . Update - test suite cleaned up on 2-9-22

1 month ago

Solved


Momentum Calculation
A shopping cart of mass 'm1' is traveling with velocity 'u' and collides with a second shopping cart of mass 'm2.' The two shopp...

1 month ago

Solved


Ridge regularized linear regression
Given a predictor data matrix of size , target variable vector of size and a shrinkage factor (scalar) (ridge regularization...

1 month ago

Load more