Solved


Find the nth term in an Arithmetic Progression
Given the starting number, difference and number of elements - find the nth term in the AP

4 years ago

Solved


Round down
round down to the nearest integer

4 years ago

Solved


determine skid distance of car
Determine the distance a car skids to a stop given initial velocity (v) and time (t).

4 years ago

Solved


Vector slither sort!
Sort a numeric vector in the following format: [largest value, smallest value, second largest value, second smallest value, etc...

4 years ago

Solved


Determine if input is prime
Determine if input is prime

4 years ago

Solved


Create a column vector of n elements between a and b (both included)
Given lower limit a and an upper limit b, create a column vector of n elements inclusive of a and b. For example: a = 1, b = 4,...

4 years ago

Solved


Determine if all elements are odd
Given an array, return true if all of the elements are odd. ex. x = [3 4 1] allOdd(x) ans = false ex. x = [3 5 7; 5 9...

4 years ago

Solved


Find the number of primes leq than input
Given an integer n, determine the number of primes less than or equal to n.

4 years ago

Solved


Find the number of terms in Arithmetic progression
Given a, Tn and d find the number of terms in the AP

4 years ago

Solved


Return 1
Returns 1 regardless of input

4 years ago

Solved


Confirm that g = 10
confirm that g is 10 by rounding it

4 years ago

Solved


Remove elements in a vector
Given a number x and a vector y, remove all occurrences of x in y. Examples: Input1 x = 1 Input2 y = [1 2 3 5] Output ...

4 years ago

Solved


Find the number of ones in a matrix.
Find the number of ones in a matrix.

4 years ago

Solved


How many num's in given vector
the function takes 2 inputs (num, vec) return the number of num's in vector

4 years ago

Solved


Two sum
Give a vector of numbers and a target, return indices of two numbers such that they add up to the target

4 years ago

Solved


Calculate the weight of a cow
Initially, the cow weighs 200kg. If it gains x kg every day, how much does it weight after y days?

4 years ago

Solved


Find the number of zeros in a matrix
Find the number of zeros in a matrix

4 years ago

Solved


Obtain remainder given two numbers
Given, a and b obtain the remaider when a is divided by b

4 years ago

Solved


Calculate the surface area of a sphere
Given the radius of a sphere, calculate the surface area

4 years ago

Solved


Determine if a number is prime
A prime number is a whole number greater than 1 whose only factors are 1 and itself.

4 years ago

Solved


Find the median of elements in vector without using in built median function
Given a vector, find the median of the vector whose length is odd without using in built median function. Input : [1,1,2,4,5,5,...

4 years ago

Solved


Determine if integer is even
Write a function to determine if an input integer(n) is even. The output should be a boolean (true or false).

4 years ago

Solved


Determine if the inputs are divisible by both 3 and 5.
Given a integer x: return true if it is divisible by both 3 and 5, return false if it is not divisible by either 3 or 5.

4 years ago

Solved


Sum of Arithmetic Progression
Given the starting number, difference and the number of terms - find the sum of the arithmetic progression.

4 years ago

Solved


Caesar Cipher
Given a input word x and a shift n, encrypt the word with caesar cipher of shift n.

4 years ago

Solved


Length of shortest path in a directed graph.
Given a directed graph and a start and end node in the graph, return the minimum number of hops required to reach the end node f...

4 years ago

Solved


True engineer
Prove that pi is indeed equal to e. Return 1 by rounding pi and e to the nearest integer then asserting rounded pi and e are eq...

4 years ago

Solved


Determine if the number is divisible by 5 or not
Given a number, return true if it is divisble by 5

4 years ago

Solved


Determine if a number is divisible by two
Determine whether the number is divisible by two

4 years ago

Solved


Absolute Value of the Product of Complex Numbers
Find the absolute value (modulus) of the product of two complex numbers given by a + bi and c + di.

4 years ago

Load more