Two-output anonymous function?
Return a function handle that when applied to an input, it produces two outputs: the first is the same as the input, and the sec...
Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is,
h = (f o g)(x) = f(g(x))
...
4ヶ月 前
解決済み
Scrabble Scores - 3
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
4ヶ月 前
解決済み
Scrabble Scores - 2
An <https://www.mathworks.com/matlabcentral/cody/problems/56-scrabble-scores introductory Cody problem> asks the user to score a...
4ヶ月 前
解決済み
Is this is a Tic Tac Toe X Win?
For the game of Tic Tac Toe we will be storing the state of the game in a matrix M.
For this game:
We would store the state ...
4ヶ月 前
解決済み
[Master Regular Expression] Goat Latin
You are given a string sentence that consist of words separated by spaces. Each word consists of lowercase and uppercase letters...
[Master Regular Expression] Keyboard Row
Given an array of strings words, return the words that can be typed using letters of the alphabet on only one row of American ke...
4ヶ月 前
解決済み
longest common semi-substring
Finding longest common substring is a common problem in string processing. This problem is a variant of that.
Two strings are g...