Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
s = 'AACTGAACG';
n = 3;
hifreq_correct = 'AAC';
assert(isequal(nGramFrequency(s,n),hifreq_correct))
|
2 | Pass |
s = 'dynamic routing service';
n = 2;
hifreq_correct = 'ic';
assert(isequal(nGramFrequency(s,n),hifreq_correct))
|
3 | Pass |
s = 'Your veracity is exceeded by your sagacity.';
n = 5;
hifreq_correct = 'acity';
assert(isequal(nGramFrequency(s,n),hifreq_correct))
|
4 | Pass |
s = 'AGCGAAGGAAGGATCACATTTCTCAGGACAAAGGCATTTCACTAATGGTT';
n = 3;
hifreq_correct = 'AGG';
assert(isequal(nGramFrequency(s,n),hifreq_correct))
|
5 | Pass |
s = 'In short, in matters vegetable, animal, and mineral, I am the very model of a modern Major-General.';
n = 2;
hifreq_correct = 'er';
assert(isequal(nGramFrequency(s,n),hifreq_correct))
|
Get the area codes from a list of phone numbers
532 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
Arrange Vector in descending order
4080 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
547 Solvers
489 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!