Ad
  • Custom User Avatar

    Bro I was trying to just remeber the Concat(). I'm trying to use the Linq library at it's maximum.

  • Custom User Avatar
  • Custom User Avatar

    I only miss do re mi

  • Custom User Avatar

    Me too... since it's also my solution :)

  • Custom User Avatar

    I like this solution. Tho I wasn't aware of this as I'm just starting out, it's really nice to get a grasp on other/better ways to write code.

  • Custom User Avatar

    ahhh a+b+c zip with 1 join, I like this one better

  • Custom User Avatar

    I think you should check the recursive criteria. An iterative solution is among the best practices answers.

  • Custom User Avatar

    Thank you so much for your reply! So there is no reason to reivent the wheel trying to write some code on your own, which have same functionality as this already written and saved as functions in language libraries, right? I gotta trust that if there is built-in function it is most efficient and most safe for all purposes, is that correct?

  • Custom User Avatar

    Hi,

    Yes, I think it's a good idea to use functions from a language's "standard library" whenever possible in order to avoid mistakes, performance issues etc. Once you learn them you can also save time and communicate better with other people who are familiar with them.

    I believe the code in our solution is more readable, more concise and less error-prone. Notice you can read it almost as an English sentence, compared to low-level "mathematical" language in your solution. It becomes important when you read and maintain a large code base.

    In summary, it's a good idea to operate on a high level of abstraction. Think about higher-order functions in functional programming or classes with their public methods in object-oriented programming.

  • Custom User Avatar

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

  • Custom User Avatar

    Nice kata! Thank you.

    I have only a small suggestion: do not use the "from the input text!" expression in the second step of the algorithm, because one has to use the case modified text.