Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Notes like
E#, F
andC#, Db
are definitely not the same due to enharmonics. They only equate to the same frequency under equal temperament.This is a duplicate of https://www.codewars.com/kata/579f54c672292dc1a20001bd
Lacks random tests
So perhaps the parameter to the function should be called
root
instead ofchord
Tests could easily force an
O(n)
instead ofO(n²)
solution.(I was lazy myself; I was a bit disappointed it passed the tests.)