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.
Expected:
instead got:
The difference: your solution considers
TNgtVbuGSaQrYFpHXkqhmseidfjwUMKPcEvlRnoLOWZDJCBI135 pounds
a valid expression and replaces it withNaN grams
. There is no word boundary or space between numbers 135, so it shouldn't be considered at all.input:
[ '77 ouncesBSdGPWfMQaUCNXcHRDTLnemKOjJhFZEbAgikIYlV (MALUBGISOKCbNcdaEPHeJZTRQXWFVDY) ', ...]
(random test)Expected:
['77 ouncesBSdGPWfMQaUCNXcHRDTLnemKOjJhFZEbAgikIYlV', ...]
Why not:
[2182 gramsBSdGPWfMQaUCNXcHRDTLnemKOjJhFZEbAgikIYlV', ...]
?Also I see cases where x tablespoons remains the same in expected output.