• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
MichaelManley Avatar
Name:Unknown
Clan:Unknown
Member Since:Jan 2023
Last Seen:Jan 2023
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (4)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • tiagossa1
    • commented on "Are You Playing Banjo?" csharp solution
    • 2 years ago

    Agreed. Since we know that we have to check the first letter of the name, then we should lower case the first letter ONLY - lower casing the WHOLE name is a waste of memory and processing. Also, string has a method called ToLowerInvariant which can be faster than regular ToLower method, since it doesn't lower case considering the culture code.

  • Custom User Avatar
    • MichaelManley
    • commented on "Are You Playing Banjo?" csharp solution
    • 3 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • raella
    • commented on "Are You Playing Banjo?" csharp solution
    • 3 years ago

    at no point does he save the ToLower name and it is never used for anything then the check so the return will still have match the name you pasted in Upper or Lower

  • Custom User Avatar
    • MichaelManley
    • commented on "Are You Playing Banjo?" csharp solution
    • 3 years ago

    This is less than optimal since it converts the whole name to lower case when we only need to compare the first letter.

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...