Gelöst


Fliping matrix to Up and Down.
Fliping matrix to Up and Down. If middle row is exist, leave it, and flip remnantal rows to Up and Down. ex) Mat = magic(...

mehr als 9 Jahre vor

Gelöst


"Bubblegum, Bubblegum, in a dish; How many pieces do you wish?"
The child's game "bubblegum, bubblegum, in a dish; how many pieces do you wish?" is a way of eliminating players until a single ...

mehr als 9 Jahre vor

Gelöst


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

mehr als 9 Jahre vor

Gelöst


Church Encoding
Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times. For example,...

mehr als 9 Jahre vor

Gelöst


Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1...

mehr als 9 Jahre vor

Gelöst


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

mehr als 9 Jahre vor

Gelöst


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

mehr als 9 Jahre vor

Gelöst


Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...

mehr als 9 Jahre vor

Gelöst


Solve t^(a*x^2+b*x+c)=s
Solve t^(a*x^2+b*x+c)=s. Return x vector as result. Example a=1, b=2, c=1, t=3, s=15. Result x(1)= 0.5700 x(2)=-2.5700 H...

mehr als 9 Jahre vor

Gelöst


Frobenius McNugget Factorization
Mr. Frobenius McNugget is a peculiar man. As you might expect, he likes to eat Chicken McNuggets. But his love of number the...

mehr als 9 Jahre vor

Gelöst


Get linearly independent vectors of given matrix.
Get a set of linearly independent vectors from the rows of a given matrix. Example matrix=[ 3 -1 0 0 ; ...

mehr als 9 Jahre vor

Gelöst


Arc length of points interpolation
Given a n by m matrix representing m vectors in n dimensions. Calculate the <https://en.wikipedia.org/wiki/Arc_length arc length...

mehr als 9 Jahre vor

Gelöst


Solve the following system of equations.
x-2y+3z=a 2x+y+z=4 -3x+2y-2z=-10

mehr als 9 Jahre vor

Gelöst


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

mehr als 9 Jahre vor

Gelöst


Distance between Berlin and New York in km
Use Pythagoras to calculate the distance between two locations in km (based on their respective longitudes and latitudes). Fo...

mehr als 9 Jahre vor

Gelöst


4 Digit Sequence Repetitions
Given a 4 digit integer, a sequence can be created such that the next digit in the sequence is the ones digit from the sum of th...

mehr als 9 Jahre vor

Gelöst


Which quadrant?
Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

mehr als 9 Jahre vor

Gelöst


Solve the following boundary value problem
Return the sum of sum(res.y) y"+|y|=0 y(0)=a y(4)=b Tip: use bvp4c

mehr als 9 Jahre vor

Gelöst


Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

mehr als 9 Jahre vor

Gelöst


Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

mehr als 9 Jahre vor

Gelöst


Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

mehr als 9 Jahre vor

Gelöst


Connect Four Win Checker
<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

mehr als 9 Jahre vor

Gelöst


Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

mehr als 9 Jahre vor

Gelöst


Calculate the Levenshtein distance between two strings
This problem description is lifted from <http://en.wikipedia.org/wiki/Levenshtein_distance>. The Levenshtein distance betwee...

mehr als 9 Jahre vor

Gelöst


Given two strings, find the maximum overlap
Given two strings s1 and s2, create a new string s3 which is as short as possible and contains both strings. If s1 = [1 2...

mehr als 9 Jahre vor

Gelöst


Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

mehr als 9 Jahre vor

Gelöst


DNA N-Gram Distribution
Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...

mehr als 9 Jahre vor

Gelöst


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

mehr als 9 Jahre vor

Gelöst


Find the palindrome
Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';

mehr als 9 Jahre vor

Gelöst


Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-647...

mehr als 9 Jahre vor

Mehr laden