Community Profile

# Lincoln Poon

##### Last seen: Today
3,302 total contributions since 2020

A university student working his way through programming.

View all

Contributions in
View by

Solved

unique with nan
input x = [2 NaN 3 5 NaN; 1 NaN 4 9 NaN; 8 -2 7 6 -2; 7 4 8 5 4]; output y_correct = [2 ...

1 day ago

Solved

Find unique number in input
Find value that occurs in odd number of input elements.

1 day ago

Solved

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

1 day ago

Solved

the proud tradition of zero scores in Cody
The short version is: *_your function should return a zero and also have a zero score/size_* The long version comes with a li...

2 days ago

Solved

Find best placement for ordered dominoes (harder)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

2 days ago

Solved

yet another flying fly (YAFF)
Same as the previous problem <http://www.mathworks.com/matlabcentral/cody/problems/203-fly-fly-away fly fly away> but now with *...

3 days ago

Solved

fly fly away
A fly moves following a predefined sequence of discrete jumps (defined by the vectors _dx_ and _dy_) repeating the same sequence...

3 days ago

Solved

Check Digit - 02
Given a list of ISBN's, check whether they're valid or not. Prev Prob - <https://www.mathworks.com/matlabcentral/cody/problem...

3 days ago

Solved

Check Digit - 01
The International Standard Book Number (ISBN) is a numeric commercial book identifier that is intended to be unique. It used ...

3 days ago

Solved

Find jumping medalists

6 days ago

Solved

Number Puzzle - 117

8 days ago

Solved

Number Puzzle - 116

8 days ago

Solved

Number Puzzle - 115

8 days ago

Solved

Number Puzzle - 114

8 days ago

Solved

Number Puzzle - 113

8 days ago

Solved

Number Puzzle - 112

8 days ago

Solved

Go back n times
You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6]). If (n=3) you will return following; [ 1 NaN NaN NaN ...

8 days ago

Solved

return row and column indices given 2 values which define a range
Inspired by problem <http://www.mathworks.co.kr/matlabcentral/cody/problems/856-getting-the-indices-from-a-matrice> Inputs: - ...

8 days ago

Solved

Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

8 days ago

Solved

pizza deals
Given two pizza slices of different sizes: * Slice A with angle alpha1, radius r1, and price p1 * Slice B with angle alpha2,...

8 days ago

Solved

Create a function without inputs that adds one to the output every time it is called. a = counterfun; disp(a) >> 1 ...

8 days ago

Solved

Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

8 days ago

Solved

Translate German decimals to English decimals
The string 'x = [2,5; 5,5; 4,3];' should return 'y = [2.5; 5.5; 4.3];'

8 days ago

Solved

Convert binary numbers to hexadecimal numbers
Function must convert the input vector x composed of 0 and 1 (length is a multiple of 8) in hexadecimal. Most significant bit is...

8 days ago

Solved

Make a list string
Given a cell string, produce a string separating the items with spaces and commas and with an 'and' preceding the final item, an...

8 days ago

Solved

Number Puzzle - 111

8 days ago

Solved

Number Puzzle - 110

8 days ago