Risolto


what can you get for exactly amount of money
You go to store, where each product has price. Prices are in vector s = [ 195 125 260 440 395 290] and you have amount ...

1 giorno fa

Risolto


Persistence will help you solve almost any problem.
Create a function without inputs that adds one to the output every time it is called. a = counterfun; disp(a) >> 1 ...

1 giorno fa

Risolto


LocateMembership | Membership of Matrix in another matrix
Let a and b be given by a = [ 2 1 1 1 1 2 1 1 1 1 2 1 1 1 1 2 4 0 0 0 ] b = [ 2 1 ...

1 giorno fa

Risolto


Compute the intersect point of line and plan
Compute the intersect point of line and plan. eg. line AB, the coordinate of A is (1,2,3) the coordinate of B is (-4,-5,-6...

1 giorno fa

Risolto


Identify Reachable Points
Given a vector of 2-D Points and a vector of 2-D Deltas create an array of all Locations that can be reached from the points usi...

1 giorno fa

Risolto


Simple Past of Regular Verbs
Given a regular verb, return the simple past. Example Input verb = 'to work' Output simple_past = 'worked'

2 giorni fa

Risolto


Compute the total length of lines between all vertices of a regular polygon
Write a function to compute the total length of between all vertices of a regular polygon inscribed in a unit circle. For exampl...

2 giorni fa

Risolto


Parametric Array
Create a row vector, 1xN (Integer, >1), such that the mean of the vector is M (Real number) and the standard deviation of the ...

2 giorni fa

Risolto


Reverse the Sign
Write a function that returns the input with the sign of every element reversed. The input may be a scalar, vector, or matrix. ...

2 giorni fa

Problema


Reverse the Sign
Write a function that returns the input with the sign of every element reversed. The input may be a scalar, vector, or matrix. ...

2 giorni fa | 0 | 6 risolutori

Risolto


Encoding Google Maps Polylines
This problem is based on the Google Polyline Encoder algorithm. This is how Google Maps encodes a line for display on a map. You...

3 giorni fa

Risolto


Sokoban: Puzzle 10.45
The <http://www.game-sokoban.com/index.php?mode=level&lid=16138 Sokoban Site> has many puzzles to solve. This Challenge is to s...

3 giorni fa

Risolto


Recycled Numbers (CodeJam Qualification Round 2012)
Let's say a pair of distinct positive integers ( _n_ , _m_ ) is recycled if you can obtain _m_ by moving some digits from the ...

3 giorni fa

Risolto


Mastermind V: Optimal Solver - average number of guesses
The following description contains a copy of Richard Zapor's <https://www.mathworks.com/matlabcentral/cody/problems/44239-master...

3 giorni fa

Risolto


Group-wise Euclidean distance
*Input*: * *x* —— An array of size *n-by-d*, where each row vector denotes a point in a d-dimensional space; * *g* —— A gro...

3 giorni fa

Risolto


Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

3 giorni fa

Risolto


Digit concentration in Champernowne's constant
Consider the first 50 digits of Champernowne's constant 0.12345678910111213141516171819202122232425262728293... The...

3 giorni fa

Risolto


En passant - 01
This is white's turn. The player moves his pawn. The pawn's previous and current positions are given. Determine whether th...

3 giorni fa

Risolto


Find the Next Legal Move in Reversi
<http://en.wikipedia.org/wiki/Reversi Reversi>, also known as Othello, is a game in which reversible white/black chips are place...

3 giorni fa

Risolto


ZigZag - 04
Given a matrix, print all its elements in the spiral form (clockwise direction). For example, a=[16 2 3 13 ...

3 giorni fa

Risolto


Rotate Matrix Both Direction (45 Degree)
*Matrix (3x3 only) rotation*: 3 inputs: *x* matrix, *n* times and *m* option. output: *y* matrix with *n x 45* degree ...

3 giorni fa

Risolto


Convert vector of strings to lower triangular matrix
Given a non-empty vector vec of strings, please put its elements into the lower triangular half of a square matrix M column-wise...

3 giorni fa

Risolto


Mean number of letters per word (Hard)
The previous problem in this series is <https://www.mathworks.com/matlabcentral/cody/problems/44852-mean-number-of-letters-per-w...

3 giorni fa

Risolto


Magic Matrix
We are all familiar with the concept of magic matrix. In a magic matrix, the summation of all rows, columns and both diagonals...

3 giorni fa

Risolto


Word Search Solver
There are n words (minimum of three letters in each word) supplied with a given word search board. The answer will contain n row...

3 giorni fa

Risolto


Ugly numbers - 02
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number. n.b. unlike the previous problem,trivi...

3 giorni fa

Risolto


Ugly numbers - 01
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number.

3 giorni fa

Risolto


Circumscribed Pentagon?
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/44368 Problem 44368>, your function will be provided with...

3 giorni fa

Risolto


Is it a mail?
Electronic mail, or email, is a method of exchanging digital messages between people using digital devices such as computers, mo...

3 giorni fa

Risolto


5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

3 giorni fa

Carica altro