Resuelto


Rotate it!
Given a set of points, your aim is to rotate it by a given angle "theta" CCW (in 2d). The points are given in a matrix(x) of dim...

casi 6 años hace

Resuelto


Only once: cleaning up your columns
We have a logical array (with ones and zeroes). It is simple: after processing every column may only contain a single true value...

casi 6 años hace

Resuelto


Bleed non-zeros to the right
What a title! Yet, it says what I mean. You get a vector, some values and a lot of zeroes. Every zero is replaced by the firs...

casi 6 años hace

Resuelto


Evaluate the logarithmic integral
The <https://en.wikipedia.org/wiki/Logarithmic_integral_function logarithmic integral> li(x) plays a role in number theory becau...

casi 6 años hace

Resuelto


Compute the Bernoulli numbers
The <https://en.wikipedia.org/wiki/Bernoulli_number Bernoulli numbers> appear in several applications in number theory, includin...

casi 6 años hace

Resuelto


Set the Euler-Mascheroni constant with an identity using available MATLAB functions
Cody Problem <https://www.mathworks.com/matlabcentral/cody/problems/42826 42826> asked us to estimate the <https://en.wikipedia....

casi 6 años hace

Resuelto


Amicable pair
Amicable numbers are two different numbers such that the sum of the proper divisors of each is equal to the other number. For...

casi 6 años hace

Resuelto


How lucky r u ?
Find the nth number in the following sequence <https://oeis.org/A264940>

casi 6 años hace

Resuelto


Arrange the names in alphabetical order (2)
Arrange the list of names in alphabetical order, following the German standard <https://de.wikipedia.org/wiki/Alphabetische_Sort...

casi 6 años hace

Resuelto


Arrange the names in alphabetical order (1)
Arrange the list of names in alphabetical order. The _original_ 'alphabetical order', that is: from α and β all the way throug...

casi 6 años hace

Resuelto


Area of Triangle with Oblique Coordinates
Find area of triangle given points p1, p2, and p3 where the y-axes is w degrees counter clockwise from the x-axes. For exampl...

casi 6 años hace

Resuelto


String to Binary Representation
Given a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example: ...

casi 6 años hace

Resuelto


Binary Array to Hex Representation
Given a binary array of bytes (lsb to msb), convert it into a hexadecimal representation (msb to lsb). For example: Input: [1 ...

casi 6 años hace

Resuelto


Beat the RNG - EASY

casi 6 años hace

Resuelto


Seconds
Given the number of seconds after 12 am, find the time in the given format (12/24). If the format is not mentioned, use 24-ho...

casi 6 años hace

Resuelto


King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

casi 6 años hace

Resuelto


An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the ...

casi 6 años hace

Resuelto


Fun Race
* Given two unary functions foo and goo. * Check whether foo(0) runs faster than goo(0). * Output 1 if foo is faster, otherwis...

casi 6 años hace

Resuelto


World Cup 2018 Prediction!
Which team will be the winner?

casi 6 años hace

Resuelto


Dice roll - lateral faces
For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...

casi 6 años hace

Resuelto


Long-digit Subtraction
Suppose you need to subtract a very large integer from another integer. <http://www.mathworks.com/matlabcentral/cody/problems/56...

casi 6 años hace

Resuelto


Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

casi 6 años hace

Resuelto


Who is the baby and who is the daddy in this family?
Given an array of numbers that shows the characteristcs of all family members, find who is the baby and who is daddy in this fam...

casi 6 años hace

Resuelto


Create a v-notch vector without "sort" function
Given a vector vec, create a v-shaped vector as shown below: vec = [ 10 2 3 89 5 7 90 0 12] ...

casi 6 años hace

Resuelto


Let's get back to school: create mixed numbered fraction
A fractional number can be represented as mixed number. A "mixed number" consists of an integer followed by a proper fraction...

casi 6 años hace

Resuelto


Sales Prediction
Miss X is a shopaholic person and every weekend she goes to a mall. There are total of 10 shops. Miss X starts from shop #1 and ...

casi 6 años hace

Resuelto


Return the names and values of the input arguments of a function
Given a function name, return the names and values of the input arguments. e.g. function_name(arg1, arg2) is a function de...

casi 6 años hace

Resuelto


Find supported functions
Given a function name, return true if that function is supported by the toolboxes that are installed with MATLAB on this machine...

casi 6 años hace

Resuelto


Find offset of an element of a multi dimensional matrix
For a given multi dimensional matrix and given element, find its offset from the 1st element. Return 0, if element is not fo...

casi 6 años hace

Resuelto


Best Fit RMS
Given a set of data as x and y, find the <http://en.wikipedia.org/wiki/Root_mean_square RMS> value between the data and its best...

casi 6 años hace

Cargar más