A résolu


Fermat's last theorem - again
For a given integer n, express it as a sum of two squares if possible. Return empty matrix otherwise. Solution may not be unique...

environ un an il y a

A résolu


How many hours are there in a day in Italy?
Remember "European Summer Time"

environ un an il y a

A résolu


Musical Note Interval 1 - Diatonic Scale
Assuming a simple diatonic C scale, calculate the interval (integer) between two notes (provided as strings). By applying number...

environ un an il y a

A résolu


Classify triangles as acute, obtuse, or right
In an acute triangle, the three interior angles are acute, or smaller than 90 degrees. In an obtuse triangle, one angle is obtus...

environ un an il y a

A résolu


Calculate trends in time series
Create a new variable that has trends in input series. If _t+1_ is bigger than or equal to _t_, than trend in _t_ will be 1, oth...

environ un an il y a

A résolu


Compute the antisigma function
The sum of divisors function, or , is the sum of the numbers that divide . The antisigma function is the sum of numbers less tha...

environ un an il y a

A résolu


Dominant Matrix - 02
It is a follow-up of the problem 55995. There, you found out whether a matrix is diagonally dominant or not. In this problem, y...

environ un an il y a

A résolu


First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...

environ un an il y a

A résolu


Last Duplicate
Given an array of integers, find the last duplicate element — that is, the element whose second occurrence appears latest in the...

environ un an il y a

A résolu


Most Frequent Characters
Given a document file or a character array, identify the 'n' most frequently occurring characters and the number of times each a...

environ un an il y a

A résolu


'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...

environ un an il y a

A résolu


Symmetric Pair
Given an (n, 2) matrix, remove any symmetric pairs from the matrix. Keep the first occurrence. (2, 3) and (3, 2) are considere...

environ un an il y a

A résolu


Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.

environ un an il y a

A résolu


Pairs with Given Sum
Given an array of integers and a target sum, return all unique pairs whose sum is equal to the target. The output should be a ma...

environ un an il y a

A résolu


Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them. For instance, ...

environ un an il y a

A résolu


Intersect three sequences
Most numbers have interesting properties, if you look hard enough and interpret “interesting” liberally. Let’s choose a number a...

environ un an il y a

A résolu


Maze Solver with Backtracking and Custom Cost Rules
Write a function solve_maze that finds a path from the top-left corner (1,1) to the bottom-right corner (m,n) of a 2D matrix M, ...

environ un an il y a

A résolu


Find the summation of factorial series
Factorial numbers are n! = 1*2*3....*n the series is 1!, 2!, 3!,........, n!

environ un an il y a

A résolu


Drying sweater?
* A sweater is revolving in a slow low power dryer and losing moisture at any moment at the constant rate 100% of its current mo...

environ un an il y a

A résolu


Acidity of vinegar and salts
Assuming: pH (potentia hydrogenii) = - log10(H+ ionic concentration in mol/Liter). For a buffer solution containing acetic acid ...

environ un an il y a

A résolu


Find the list of all open files
In the test suite, I use <http://www.mathworks.com/help/matlab/ref/fopen.html fopen> to create new files. The task is to find th...

environ un an il y a

A résolu


Cody Computer Part 3 - Detect the graphic card used on Cody Computer
In the Cody computer investigation party, you may have already solved : Problem 522. Cody Computer Part 1 - Guess the system fo...

environ un an il y a

A résolu


Image Series 3 Complementary
Find the Complementary of image which is 8 bits gray scale image. Each pixel is converted to binary format in the image. A...

environ un an il y a

A résolu


Does this dress make me look fat
For the input string "Does xyz make me look fat" output the string "No, xyz does not make you look fat"

environ un an il y a

A résolu


Sum of infinite series.

environ un an il y a

A résolu


Billiards
Considering there are 15 pool balls, (b), in the game of pool, and given a radius, (r). What is the volume, (V), of a rack in th...

environ un an il y a

A résolu


Convert a grayscale image into RGB colour format, preserving data type
In the Image Processing Toolbox, MATLAB provides rgb2gray to convert a 3 channel color image into a 1 channel intensity...

environ un an il y a

A résolu


num7
num

environ un an il y a

A résolu


num3
nam

environ un an il y a

A résolu


nam2
nam

environ un an il y a

Charger plus