Ad
  • Custom User Avatar

    Random test:

    "n6N" is not a palindrome: expected true to equal false

    Sample test:

    test("RotaTor", true);

    and Kata text says results are case insensitive.

    So exactly how is "n6N" not a palindrome?

  • Custom User Avatar

    Description with the pluses after the csv strings could be better. I had to figure out that it was just a continous string expected (not a string of strings with extra white-space and plus characters) from the test cases, which is a little more than I should have to be doing for an 8kyu.

  • Custom User Avatar

    Description says to create a new array but you can pass the kata by manipulating the existing array.

  • Custom User Avatar

    The solution internal has no customer-solver facing problems caused and is not visible or needing to be maintainable in any way that would require such changes. Why not 10000 when it works with barely a pause for the user's thought? The specs as per previous response do not matter here. We're not building a prod system and I don't waste my time outside work pretending we are. My brain time is precious and I'm not going to be forced while donating my time to help the community to expend it wastefully.

    This kata works and I answer only to the end users: Kata takers who have a problem with how this Kata looks from the outside. I say again: I have big commitments that means I don't have time to be taken to task for
    ephemera that is no more tangible than pants on a naked person.

  • Custom User Avatar

    TypeScript solution also includes random tests which could be ported back to JavaScript if people have the time

  • Custom User Avatar
  • Custom User Avatar

    Also, and probably more importantly: "we need to know the amount of subsets that none of their values have repetitions" isn't a grammatical clause, which makes it harder to work out what the author intended

  • Custom User Avatar

    "amount of subsets that don not"

    Who is Don Not? ;)

  • Custom User Avatar

    Kinda. It works, but only when you don't follow the description and set the timeout to some arbitrary value that correlates with the hidden tests. Not really what I'd expect but meh

  • Custom User Avatar

    Tests fail now regardless of the number of ms you set on the timeout. This kata seems impossible to pass anymore and as such should either be changed immediately or retired.

  • Custom User Avatar

    TypeScript sample tests broken with error:

    TSError: ⨯ Unable to compile TypeScript:
    test.ts:1:22 - error TS6053: File '/runner/typings/mocha/index.d.ts' not found.

  • Custom User Avatar

    TypeScript: "TSError: ⨯ Unable to compile TypeScript:
    test.ts:1:22 - error TS6053: File '/runner/typings/mocha/index.d.ts' not found." error on sample tests. Final tests work fine.

  • Custom User Avatar

    How come this is tagged 'binary search tree' when the tree is not a binary search tree (can be unsorted)?

  • Custom User Avatar

    A lot of people have trouble understanding contextual binding of 'this' so even though the thing itself is very easy you could argue that this is semi-advanced JavaScript knowledge and thus merits maybe a 6kyu. I did find it one of the easiest 5kyus I've tried tho.

  • Custom User Avatar

    Is it? The default code is still typed as Number[] but the hidden tests are sending it String[], causing them to fail unless you change the type to any[] or similar (object[] would probs work though I didn't try it). If that's intentional on an 8 kyu there should at least be some hint in the description.

  • Loading more items...