Solved


Invert a Logical Matrix
Given a logical matrix, invert it

4 years ago

Solved


Pascal's Triangle
Given an interger n, return n row Pascal's Triangle.

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

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

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

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

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

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

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

4 years ago

Solved


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

4 years ago

Solved


find the position of the given number in vector
return the position of the number in vector

4 years ago

Solved


return odd numbers
Return odd numbers in an vector

4 years ago

Solved


determine if input is even
find the number is even or not

4 years ago

Solved


determine if input is Odd
Find whether the input is odd. return 1 if true or else 0

4 years ago

Problem


B-Zuckerman Numbers
Similar to my last problem (B_Harshad Numbers), B-Zuckerman Numbers are numbers that are divisable by the product of their digit...

4 years ago | 0 | 6 solvers

Solved


Determine if input is prime
Output if prime

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

4 years ago

Problem


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

4 years ago | 1 | 6 solvers

Solved


Monty Python and the Holy Grail: Crossing the Bridge of Death
To cross the Bridge of Death, your function must return the numerical value for the airspeed velocity of an unladen swallow

4 years ago

Solved


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

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

4 years ago

Solved


Return the Fun Numbers
Return the Fun Numbers, just the 3s and 7s

4 years ago

Solved


Nth term of AP
Given the first term 'a' and the common difference 'd' of an AP series, calculate the nth term of the series.

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

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

4 years ago

Solved


Extract the main diagonal of a matrix
Extract the main diagonal of a matrix and return as an array. For example, the main diagonal of the following matrix would be: ...

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

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

4 years ago

Solved


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

4 years ago

Solved


Draw a X
Given an input , create a square matrix of zeros with an X of ones. Ex. n = 3 drawX(3) [ 1 0 1 0 1 0 1 0 1 ] ...

4 years ago

Load more