A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Non trivial identities - transpose
Return x by transposing it.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Non trivial identities - roots
Return x after rooting it.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Standard Deviation
Find standard deviation of an array.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Mean of a matrix
Determine numeric mean of a matrix

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


BaeIsAlwaysRight
Output yes whatever bae says

plus de 9 ans il y a

Charger plus