Ad
  • Custom User Avatar

    Probably? hence why this is in Clever rather than best practices

  • Custom User Avatar

    It doesn't, it turns 9s into 10s and replaces the match with the new number

  • Custom User Avatar

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

  • Custom User Avatar

    A couple of days ago, two of your solutions of blue kata were invalidated by a mod, that is why your rank slightly dropped. These are old solutions, from July 2020. All your recent solutions are valid and you still have points for them.
    In total you have a few (4 or 6 or so, would have to count exactly and it's not easy) solutions invalidated by a mod, most probably because they were recognized as copies from other solutions or somewhere from internet.

  • Custom User Avatar

    BTW, here's how that test looks like: (I don't think it's much of a spoiler)

    var a = add(1)(2);
    var b = add(3)(4);
    

    Then it checks that a == 3 and b == 7. I hope that helps.

  • Custom User Avatar

    Although the first example was not included in the instructions, But should a == 3, after a = add(1)(2) and a(1) ?

    No, it should be 4 then. (not a itself, but the result of calling a(1) afterwards)

  • Custom User Avatar

    I think that's everything. Have you tried submitting your code?

  • Custom User Avatar

    I mean, it literally shows you an example after that text. It just means you can store an intermediate result in a variable, and then call it again.

    If you implement it correctly, there's no real difference.

  • Custom User Avatar

    It is yes, I gave it a rank suggestion of 6 I believe, but other people ranked it easier. I wish they hadn't. _O_/

  • Custom User Avatar

    Haven't you found a better reply other than being insultive and accusatory?

    did you say...? So nothing offensive when it's only truth, no? x)

    Anyway, to answer your question there, points can be removed, yes (will happen at some point, but when...? that's another question). But then, you cannot complete those kata anymore. And if your account get banned, you can create another one, yes (not with the same name).

  • Custom User Avatar

    You were arleady reported here, but, lucky for you, you weren't banned yet.

    What you can do is to post a note there about the kata you copied, and ask the question there. Admins are able do deduce your points, but it will help when you tell the list of kata, so they don't have to search by themselves. It's up to admins to decide if they just reduce your points (it's a lot of work), ban you (it's much easier), or simply do nothing and let you be for now ;)

  • Custom User Avatar

    so, you didn't find a solution to copy on the web for this one, yet? Surprizing...

    Anyway. When you post an issue (or even a question), don't forget to state the language. For instance, I checked C, C++, JS, C# and python (those you seem to practice), and none of them has a test with this input.

    Hence, I bet you're mutating the input, so it's not surprising you end up in a mess.

    Closing, as it's not a kata issue.
    cheers

  • Custom User Avatar

    Trim replaces the spaces only in the beginning or end of a string. It combines "TrimStart" and "TrimEnd".

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Loading more items...