Community Profile

photo

Lincoln Poon


Last seen: Today Active since 2020

A university student working his way through programming.

Statistics

  • MATLAB Central Treasure Hunt Finisher
  • Project Euler I
  • Indexing III Master
  • Indexing V Master
  • Card Games Master
  • Matrix Manipulation III Master
  • Sequences And Series II Master
  • Sequences And Series III Master
  • Strings II Master
  • Tiles Challenge Master
  • Matrix Manipulation I Master
  • Functions I Master

View badges

Content Feed

View by

Solved


Array Concatenation (2)
Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

ungefär en timme ago

Solved


Convert a given Character to its decimal equivalent value
Convert a given character to its decimal equivalent value according to the ascii table. if x = '!'; y = 33; if x = 'u'; ...

ungefär en timme ago

Solved


Find out if Quadratic Equation has real roots or not?
Input [a b c] ax^2+bx+c=0 Output [1 or 0] 1= Quadratic Equation has real roots 0= Quadratic Equation has real roots

ungefär 14 timmar ago

Solved


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

ungefär 18 timmar ago

Solved


Calculate a modified Levenshtein distance between two strings
Inspired by the Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-distance-b...

ungefär 20 timmar ago

Solved


Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

ungefär 21 timmar ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

ungefär 21 timmar ago

Solved


Iterate the sum of divisors and totient

ungefär 22 timmar ago

Solved


Sum of all the divisors of n

ungefär 24 timmar ago

Solved


Sum the elements in rows of the Levine triangle
The Levine triangle starts as follows: Row 0: 2 Row 1: 1 1 Row 2: 1 2 Row 3: 1 1 2 To construct each row, r...

en dag ago

Solved


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

en dag ago

Solved


Compute the Sequence of the Day
A sequence starts with 1 and 2, and each subsequent term is the sum of the digits of the product of the previous two terms. As a...

en dag ago

Solved


Easy Sequences 4: Eliminate the Days of Confusion
If a date is written in purely numeric format some dates can be confusing, if we don't know the date format used. For example, "...

en dag ago

Solved


Easy Sequences 3: Prime 44-number Squares
The positive integers 62 and 238 are related. Their squares (3844 and 56,644) both end in '44'. In fact, 62 and 238 are the 3rd ...

en dag ago

Solved


Broken numlock key, oppps !
The numlock key on my computer is pressed and is now broken, so I cant press it to switch off the numlock mode. And hence I am n...

en dag ago

Solved


Pancake sorting
Sort a stack of pancakes by flipping them using spatula. * There are _N_ pancakes with diameters _1:N_. * Spatula can be ins...

en dag ago

Solved


How to reverse spdiags?
The spdiags function extracts all nonzero diagonals from the m-by-n matrix A. So if A=[1 2 3;4 5 6;7 8 9], spdiags(A)=[7 4...

en dag ago

Solved


Fangs of a vampire number
A vampire number is a number v that is the product of two numbers x and y such that the following conditions are satisfied: at ...

en dag ago

Solved


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 ...

en dag ago

Solved


Mathematical formula
Find the value of the expression given the values of variables t and k. Assume g=9.81

2 dagar ago

Solved


Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order. Efficiency is the key here...

2 dagar ago

Solved


Find the remainder - 02
Given an array of integers, find the remainder when the summation of all the elements is divided by N

2 dagar ago

Solved


Momentum Calculation
A shopping cart of mass 'm1' is traveling with velocity 'u' and collides with a second shopping cart of mass 'm2.' The two shopp...

2 dagar ago

Solved


Sequence
Let S be a sequence of numbers Let Find for some , where and . Update - test suite cleaned up on 2-9-22

2 dagar ago

Load more