Solved


Reverse digits of a number
Reverse digits of a number. For example, return *321* for the input *123* . The left-hand zeros can be discarded. For exam...

9 years ago

Solved


Check if two matrices are permutations of each other
Your function should return true for the elements of one matrix is the permutation of the other matrix: x = [1 2 3; 4 5 6; ...

9 years ago

Solved


Determine if a year is leap year
For a given year return 0/1 indicator of a leap year.

9 years ago

Solved


isPalindrome
Check if a matrix is a palindrome both vertically and horizontally. You function will return *true* for |[1,2,1]| or |[2,7,2; 6...

9 years ago

Solved


Check if a rotated array was originally sorted
Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

9 years ago

Solved


Non trivial identities - power
Return x by by rising it to a power.

9 years ago

Solved


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

9 years ago

Solved


Some tweaks in summation, Can you decode? :)
There are some tweaks in summation that you might observe via test suites Try if you can

9 years ago

Solved


Non trivial identities - transpose
Return x by transposing it.

9 years ago

Solved


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

9 years ago

Solved


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

9 years ago

Solved


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

9 years ago

Solved


Repeat string n times
Example: from 'a' create 'aaaaa' (if n=5)

9 years ago

Solved


Cell of repeated string
Example: From 'asdf' create {'asdf';'asdf';'adsf';'asdf'} if n=4

9 years ago

Solved


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

9 years ago

Solved


Chicken race
2 chickens, Pete and Fred, compete in a 100 meter race. Pete runs at a velocity of vp meter/second and Fred is slower, running ...

9 years ago

Solved


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

9 years ago

Solved


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

9 years ago

Solved


Non trivial identities - roots
Return x after rooting it.

9 years ago

Solved


Non trivial identities - double negative
Return x after negating it.

9 years ago

Solved


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

9 years ago

Solved


Non trivial identities - polynomial
Return x as a polynomial of itself.

9 years ago

Solved


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

9 years ago

Solved


How do you make seven even?
Take away the s.

9 years ago

Solved


Standard Deviation
Find standard deviation of an array.

9 years ago

Solved


Find my lucky number
Write a function which returns my lucky number

9 years ago

Solved


Mean of a matrix
Determine numeric mean of a matrix

9 years ago

Solved


Check capital letters
Check if each first letter of a string is a capital letter. for example: 'This Is Ok' gives a true answer and 'This Is not Ok' ...

9 years ago

Solved


Stubborn guy
In a vote, the stubborn guy always votes differently. for example if the other vote is: x=true then he votes false

9 years ago

Solved


BaeIsAlwaysRight
Output yes whatever bae says

9 years ago

Load more