Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Non trivial identities - transpose
Return x by transposing it.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Non trivial identities - roots
Return x after rooting it.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Standard Deviation
Find standard deviation of an array.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Mean of a matrix
Determine numeric mean of a matrix

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


BaeIsAlwaysRight
Output yes whatever bae says

fast 10 Jahre vor

Mehr laden