MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string.
For example
A='harsa';
b='harish'; result '1'
...
Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise
10年以上 前
解決済み
Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody.
Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...
Check if sorted
Check if sorted.
Example:
Input x = [1 2 0]
Output y is 0
10年以上 前
解決済み
Simple date to serial no. conversion
Convert a date string to a serial date number.
For example if you take
x='19-May-2001'
then the result is 730990
x...
10年以上 前
解決済み
Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.