Solved


Calculate Percentage
Given marks obtained and total marks, calculate the percentage.

3 years ago

Solved


Find distance travelled by an object starting from rest in time 't' and linear acceleration 'a' = 3t
Find distance travelled by an object starting from rest in time 't' with linear acceleration a = 3t. You are given time t as an ...

3 years ago

Solved


Aerodynamic load on a vehicle
Determine the aerodynamic load on a vehicle having aerodynamic drag coefficient , frontal area , moving at speed in an environm...

3 years ago

Solved


Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order. Efficiency is the key here...

3 years ago

Solved


Sum of 2 numbers in array
Given an array and a target sum, return true if any 2 numbers in the array sum up to the given target sum. Both numbers cannot h...

3 years ago

Solved


Zigzag array
Given an vector of integers, rearrange the array so that the array looks like: [largest value, smallest value, 2nd largest valu...

3 years ago

Solved


Exponent of IEEE Single
Output the exponent bits as a uint8 of the IEEE representation of the single-typed 32-bit float input.

3 years ago

Solved


Invert a Logical Matrix
Given a logical matrix, invert it

3 years ago

Solved


Minimum number of children to distribute unequal cookie portions
A cruel parent wants to distribute N cookies such that it is impossible for every child to receive the same number of cookies. W...

3 years ago

Solved


encuentra el 'string', o serie, mas largo el un vector de 'strings'
Encuentra el 'string' mas largo. Si hay mas de uno del mismo tamano, elige el primero.

3 years ago

Solved


Sum of Cubes
Given n, find the sum of cubes of integers till n. For example, if n = 3, then answer is 1^3 + 2^3 + 3^3 = 36.

3 years ago

Solved


Draw a triangle of ones
For any given n, return a matrix that includes a triangle of ones of height n: Example n = 3 output = [0,0,1,0,0 ...

3 years ago

Solved


Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

3 years ago

Solved


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

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

3 years ago

Solved


Caesar Cipher Shift
Given a word and its encrypted version using the caesar cipher, find the shift used.

3 years ago

Solved


Mix it up!
Given an input string S, return a new string B, that is created by taking one character from the front and then the end iterativ...

3 years ago

Solved


B-Harshad Numbers
Determine (and provide as output in decimal form) all the harshad numbers base B (B-Harshad) from a given array of decimal numbe...

3 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

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

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

3 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?

3 years ago

Solved


Test for CODEchella
Test for CODEchella Find the fourth-root of a number

3 years ago

Solved


Find Min and Max Differences in a Vector
Given an array of integers, return the absolute largest and smallest (non zero) difference between any two numbers in the array....

3 years ago

Solved


Sort vector by number of prime factors of each element
Sort a given array based on how many prime factors each term has. Sort from least to greatest and output original values. Ex: ...

3 years ago

Solved


Return longest string in 1-D array of strings
Find the longest string in an array of strings. Return an empty string if the initial array is empty. If there are multiple stri...

3 years ago

Solved


Invert a Logical Matrix
Given a logical matrix, invert its values

3 years ago

Solved


Draw a fancy '7' in a zero matrix!
Given a x-by-x matrix filled with zeros (x is odd and > 3). Use 7s to draw a number 7 into it! Like this: x = 5, y = 7 7 7 7 7...

3 years ago

Solved


Distance of Car
If a car is going x miles per hour, how long does it take to get y miles?

3 years ago

Solved


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

3 years ago

Load more