Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.
3 years ago
Solved
Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...
3 years ago
Solved
DNA N-Gram Distribution
Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...
3 years ago
Solved
Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...
3 years ago
Solved
Longest Divisor Run
Given the vector a, find the longest run of consecutive
numbers that can be evenly divided by the same number d where d > 1.
...
3 years ago
Solved
Renaming a field in a structure array
MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...
3 years ago
Solved
Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me
by Matt Simoneau.
Given a vector x, make an indexed pro...