Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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?
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.
Description says to create a new array but you can pass the kata by manipulating the existing array.
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.
TypeScript solution also includes random tests which could be ported back to JavaScript if people have the time
Added TypeScript Translation, please approve
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
"amount of subsets that don not"
Who is Don Not? ;)
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
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.
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.
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.
How come this is tagged 'binary search tree' when the tree is not a binary search tree (can be unsorted)?
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.
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...