Problem 79. DNA N-Gram Distribution
Solution Stats
Problem Comments
-
1 Comment
It should be noted that spaces should be ignored or else test suites 3 and 5 fail.
Solution Comments
-
1 Comment
good use of 'hankel' function
-
1 Comment
cool solution
-
2 Comments
Sorry about this, but I got stuck and I want to learn how to do it. After looking at several solutions, I found my mistake and was able to create my own solution :)
What happens if the test suite changed in the future?
-
1 Comment
This solution is not correct in general, as the way of using hankel here, generates n-1 fake fragments
-
1 Comment
Clever usage of the Hankel matrix. I don't automatically think of the Hankel for this application, but it really works well. Thanks - I've learned something
-
1 Comment
What's the point of a 'solution' like this? It passes the test suite, but in what way was it interesting for you to write it?
Problem Recent Solvers1031
Suggested Problems
-
4050 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
500 Solvers
-
Number of 1s in a binary string
6521 Solvers
-
Test if two numbers have the same digits
227 Solvers
-
Magic is simple (for beginners)
6515 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!