Numbers on 7-segment
This is a 7-segment:
_
|_|
|_|
It's a 3-by-3 char matrix.It has made by 3 characters: '_' , '|' and ' ' (space...
約2年 前
解決済み
Still more miles to go before I sleep
It's time for more odometer fun. Last problem, my car's odometer hit 56789. It's coming up on 111111 now, which (barring a maj...
The last non-zero digit of a factorial
For given positive integer n, what is the last non-zero digit of n!?
Example: factorial(11) = 39916800
Last non-zero d...
Return part of an array
Given a 5x5 array, return a 3x3 array that contains the cells that are not on the edge of the array:
Given this array
Return...
Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards.
For example:
...
約2年 前
解決済み
Palindrome vector
Check if a given vector is Palindrome.
Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]
約2年 前
解決済み
Sum of squares
Given a number n, return the sum of squares of all integers from 1 to n.
約2年 前
解決済み
nxn matrix with elements from 1:n^2
really simple once you see what the matrix is supposed to look like. i appreciate what seems to be a clever approach to solving ...
UICBioE240 problem 1.8
Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class.
...
2年以上 前
解決済み
Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x.
Example:
For inputs p and x
...