Audio Engineer @ Harman

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...

ongeveer 2 maanden ago

Solved

Find the palindrome

Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';

ongeveer 2 maanden ago

Solved

Tic Tac Toe FTW

Given a tic tac toe board: * 1 represents X * 0 represents empty. * -1 represents O It is X's move. If there is an imme...

ongeveer 2 maanden ago

Solved

Choose the best fitting dominoes

You will be given a cell array of nx2 matrices. Choose one row from each matrix. These are the ordered pairs that will be plac...

2 maanden ago

Solved

Test if a Number is a Palindrome without using any String Operations

*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

2 maanden ago

Solved

Without the French accent please!

Suppress the French accent. Example 'Déjà présent' -> 'Deja present'

2 maanden ago

Solved

Convert a structure into a string

Convert the contents of each fields into a string. Example with an input structure s with 2 fields : s.age = '33' s....

2 maanden ago

Solved

Replace all zeros and NaNs in a matrix with the string 'error'

Given a numeric input matrix A, possibly containing some zero values and some NaNs, replace any occurrences of zero or NaN with ...

2 maanden ago

Solved

root?

* Given a function 'foo', and a position 'there', find the root near 'there'. * For example: If foo=@sin, and there=3.1, then r...

2 maanden ago

Solved

Cody Computer Part 2 - Get the license number of Cody Computer

In the Cody computer investigation party, you may have already solved : <http://www.mathworks.com/matlabcentral/cody/problems...

2 maanden ago

Solved

Find the list of all open files

In the test suite, I use <http://www.mathworks.com/help/matlab/ref/fopen.html fopen> to create new files. The task is to find th...

2 maanden ago

Solved

Cody Computer Part 1 - Guess the system font used by uipanel

list = listfonts return the list of available system fonts. Can you guess which font is used for uipanel on the CODY computer...

2 maanden ago

Solved

Join Strings with Multiple Different Delimiters

The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

2 maanden ago

Solved

Unique values without using UNIQUE function

You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...

2 maanden ago

Solved

Legend of Zelda - Rupee Count (Compact)

Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that Link's...

2 maanden ago

Solved

Legend of Zelda - Rupee Count

Rupees are the main currency in The Legend of Zelda games. The value of each rupee is determined by its color. Unfortunately, th...

2 maanden ago

Solved

Calculator spelling - Numbers to Letters

Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

2 maanden ago

Solved

Calculator spelling - Letters to Numbers

Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

2 maanden ago

Solved

Dice roll - opposite faces

For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...

2 maanden ago

Solved

Divisible by 9

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

2 maanden ago

Solved

Divisible by 10

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

2 maanden ago

Solved

Divisible by 5

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

2 maanden ago

Solved

Divisible by 6

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

2 maanden ago

Solved

Twin Primes

Twin primes are pairs of primes that are immediately next to each other (difference of two). The lesser of twin primes are 3, 5,...

2 maanden ago

Solved

Fizz Buzz

Given an array of positive, non-zero, integers, return a cell array of strings the same size as the input, where each element in...

2 maanden ago

Solved

I Plead the Fifth

Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

2 maanden ago

Solved

Dice roll - lateral faces

For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...

2 maanden ago

Solved

Create an 'arrow-head" matrix

Write a function that when given an odd number, produces an arrow-head function pointing to the right. Examples n = 3 ...

2 maanden ago

Solved

Rumis Scorer 1

<http://en.wikipedia.org/wiki/Rumis Rumis> is a multiplayer 3D block board game where the goal is to have the most squares visib...

2 maanden ago

Solved

Weighted Gold/Silver Standard

Building off of the <http://www.mathworks.com/matlabcentral/cody/problems/8045-gold-standard Gold Standard> and <http://www.math...

2 maanden ago