We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
that's because you're not saving the lower case strings in any variables, so it's creating an array of the original strings, not the lower cased ones. Also I would advise against using the sort method as it has a high time complexity.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Conditional Statements: Switch
You are viewing a single comment's thread. Return to all comments →
that's because you're not saving the lower case strings in any variables, so it's creating an array of the original strings, not the lower cased ones. Also I would advise against using the sort method as it has a high time complexity.