three digits
Input three digits no larger than 4,say 1,2 and 3, write the possible largest number composed(concatenation and power) only by t...
約4年 前
解決済み
That's not my hat!
There exists a highly secretive hat consortium. Members possess identical hats. The members are invited to a meeting. All of the...
約4年 前
解決済み
Define the higher order function - foldl
Given a binary function f, a starting value a, and a list (row vector) xs of values, the higher order function foldl folds the f...
Swap Characters of a Single Word
Description:
In the given input word, convert the lower case to upper case and vice versa.
A to a, a to A ...
Example:
'Matl...
Fill a rectangle with 1x1 and 2x2 tiles
A 3x2 rectangle can be filled with 1x1 and 2x2 tiles in three ways:
The colors merely distinguish the sizes of the tiles. A 3...
約4年 前
解決済み
Palindrome Problem 1
Continued Problem 50033: A palindrome is one-thirteenth of the sum of and , where and are also palindrome. Give an example o...
Square Rooting a Number
This MATLAB Cody exercise requires you to take a number x, square root it, and get y
約4年 前
解決済み
prime consecutive sums
Create a number sequence of 1 to n, such that the sums of every two consecutive numbers are all primes.
E.g. if n = 5, you may ...
約4年 前
解決済み
N-th Digit of all Write-Down Numbers
Write-Down Numbers are: 123456789101112131415161718192021222324252627282930...
What is the N'th digit (where N is represented a...
約4年 前
解決済み
Count of Unique Elements of a Vector
Count the number of times each unique element appears in a vector.
Example:
Input x = [2 9 1 2 4 9 2]
Output y = [1 1; 2 3; 4...
約4年 前
解決済み
n-th digit of write-down all numbers
Write down number as
123456789101112131415161718192021222324252627282930...
what's the n-th digit? input n and get the digit.