• 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
PedroSL Avatar
Name:Unknown
Clan:Universidade do Minho
Member Since:Apr 2017
Last Seen:Apr 2017
Profiles:
    Following:45
    Followers:43
    Allies:43
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (10)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • emantas
      • commented on "Credit Card Mask" kata
      • 8 years ago

      nevermind i figured it out.Thanks anyway

    • Custom User Avatar
      • AcesOfGlory
      • resolved an issue on "Credit Card Mask" kata
      • 8 years ago

      The expected and the actual testcases are swapped around, so your solution is "###########5616" and the expected solution is "############5616".

      Your solution has one less hash ("#") than the expected. The expected has 12 hashes and 16 characters total, and your solution has 11 hashes and 15 characters total.

    • Custom User Avatar
      • PedroSL
      • created an issue for "Credit Card Mask" kata
      • 8 years ago

      Expected string length 15 but was 16. Strings differ at index 11.
      Expected: "###########5616"
      But was: "############5616"

      Assert.AreEqual(Kata.Maskify("4556364607935616"), "############5616");

      What?

    • Custom User Avatar
      • PedroSL
      • commented on "Credit Card Mask" kata
      • 8 years ago

      Are you using the usings?

    • Custom User Avatar
      • ianvl
      • commented on "Decode the Morse code " kata
      • 8 years ago

      Removing all spaces you get at the start end end of your final string should work.

    • Custom User Avatar
      • PedroSL
      • created a question for "Decode the Morse code " kata
      • 8 years ago

      I can't seem to be able to use Arrays, is there something I have to do diferently in codewars?

    • Custom User Avatar
      • PedroSL
      • commented on "Find the next perfect square!" kata
      • 8 years ago

      It is also not a good solution.

    • Custom User Avatar
      • PedroSL
      • commented on "Find the next perfect square!" kata
      • 8 years ago

      Yes there is. You must use System.Math instead of just math.

    • Custom User Avatar
      • PedroSL
      • commented on "Growth of a Population" kata
      • 8 years ago

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

    • Custom User Avatar
      • PedroSL
      • commented on "Ones and Zeros" kata
      • 8 years ago

      http://www.wikihow.com/Convert-from-Binary-to-Decimal

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...