Find the longest match inside two strings
Given two strings, find the longest string which is contained within both strings.
e.g. the longest string that is contained ...
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...
約6年 前
解決済み
Beauty of Parentheses
Given a string consisting of closed parentheses, form a string array in the following way so that the orders of these parenthese...
Legend of Zelda - Rupee Count (Compact)
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that Link's...
約6年 前
解決済み
Legend of Zelda - Rupee Count
Rupees are the main currency in The Legend of Zelda games. The value of each rupee is determined by its color. Unfortunately, th...
約6年 前
解決済み
Shorten pathname
Given a pathname string, return a condensed version by replacing intermediate folders with '..'.
*Example*
If
fullpat...
Calculator spelling - Letters to Numbers
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...
約6年 前
解決済み
Calculator spelling - Numbers to Letters
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...
Calculate the sphericity of a Raschig ring
Sphericity is a measure of the roundness of any particle. It was defined by Wadell in 1935 as the ratio of the 'surface area of ...
Evaluate the logarithmic integral
The <https://en.wikipedia.org/wiki/Logarithmic_integral_function logarithmic integral> li(x) plays a role in number theory becau...
Long-digit Subtraction
Suppose you need to subtract a very large integer from another integer. <http://www.mathworks.com/matlabcentral/cody/problems/56...
約6年 前
解決済み
COUNT LETTERS
Count the number of letters in a given string. For Example:
STR='The MAtlAb code'; output:T 2
H 1
E 2
M 1
A 2
L 1
B 1
C ...
約6年 前
解決済み
Reverse CHECKBOX MATRIX with 69
Create a reverse checkbox matrix with '69'.
Where the size is the input and output will be a square checkbox matrix.
Exa...
約6年 前
解決済み
A kind of decryption
Please convert the vector to letters by referring to the examples below.
(eg.1) input vec=[34 1 59] >>> output s='A Z'
(eg...