Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Non trivial identities - transpose
Return x by transposing it.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Non trivial identities - roots
Return x after rooting it.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Standard Deviation
Find standard deviation of an array.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Mean of a matrix
Determine numeric mean of a matrix

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


BaeIsAlwaysRight
Output yes whatever bae says

casi 10 años hace

Cargar más