Feeds
已解决
Easy Sequences 85: Hyperprimorials
Given an integer , the primorial of , , is defined as product of all primes from to the -th prime. In other words, if is the ...
2 days 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
2 days 前
已解决
ICFP 2022 - Create Command Script from Color-Region-Fill
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...
2 days 前
已解决
Compute the polylogarithm for real arguments
The polylogarithm appears in quantum statistics and quantum electrodynamics, and for special cases of and , it connects to the...
7 days 前
已解决
Easy Sequences 103: One-line Code Challenge - Evaluate String Math Expressions
Given a character string of a simple mathematical expression containing only numbers, parentheses and arithmetic symbols (+ - * ...
7 days 前
已解决
Integrate a Power-Tower of a Function
Write a function to compute this integral: Where the function, F(x), will be provided as an Anonymous function of x, and th...
7 days 前
已解决
Create a dictionary
The goal is to write a function that returns a dictionary from a list of words or phrases and their definitions. Here is an exam...
21 days 前
已解决
Scrabble Scores - 13
This problem integrates components of <https://www.mathworks.com/matlabcentral/cody/problems/3084-scrabble-scores-11 Scrabble Sc...
21 days 前
已解决
Scrabble Scores - 11
This problem builds on the previous problem, wherein you were provided a letter of an existing word on the board and from which ...
21 days 前
已解决
Scrabble Scores - 10
This problem is very similar to the previous problem. Here, you are provided a letter of an existing word on the board from whic...
21 days 前
已解决
Scrabble Scores - 9
After developing a sophisticated Scrabble scoring routine, it's time to write an optimization routine for single-word scoring. T...
21 days 前
已解决
Scrabble Scores - 8
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
21 days 前
已解决
Scrabble Scores - 7
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
21 days 前
已解决
Scrabble Scores - 6
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
21 days 前
已解决
Scrabble Scores - 5
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
21 days 前
已解决
Scrabble Scores - 4
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
21 days 前
已解决
Scrabble Scores - 3
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
21 days 前
已解决
Scrabble Scores - 2
An <https://www.mathworks.com/matlabcentral/cody/problems/56-scrabble-scores introductory Cody problem> asks the user to score a...
21 days 前
已解决
Code breaker, Part III: Operation Xiangliu
You have been tasked with decoding several batches of coded messages that have been intercepted. Based on previous intellig...
21 days 前
已解决
Code breaker, Part II: Operation Orthos
You have been tasked with decoding several batches of coded messages that have been intercepted. Based on previous intellig...
21 days 前
已解决
Reverse Boggle
Description In the classic Parker Brothers game Boggle, players find words from a 4x4 game board of letters. This exercise is t...
21 days 前
已解决
Scrabble Scores - 12
This problem builds directly off of Scrabble Scores - 10. Here, you are provided an existing word on the board from which you wi...
21 days 前
已解决
Code breaker, Part I: Operation Phoenix
You have been tasked with decoding a set of coded messages that have been intercepted. Based on previous intelligence that ...
21 days 前
已解决
Pancake sorting
Sort a stack of pancakes by flipping them using spatula. * There are _N_ pancakes with diameters _1:N_. * Spatula can be ins...
22 days 前
已解决
How close to a hole
Suppose you have a description of good places (ones) and bad places (zeros). You want to know your distance from a bad place (in...
22 days 前
已解决
Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...
22 days 前
已解决
Find the distance between runs
Another question inspired by the <http://uk.mathworks.com/matlabcentral/answers/?s_tid=gn_mlc_an answers forum>: A vector of ...
22 days 前
已解决
Find Elements in Range
Based on a question on <http://www.mathworks.com/matlabcentral/answers/ MATLAB Answers>. Find all the elements of a vector wh...
22 days 前
已解决
Find indices of diagonal elements
Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...
22 days 前
已解决
Neither minima nor maxima
Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...
22 days 前











