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.
Hey, for those using TypeScript, you will need to fix the specs for the sample test to make reference a self closing tag like below
Thanks, is it ok that I have both in there. I made minor changes to the javascript program since things like station were not needed.
This comment is hidden because it contains spoiler information about the solution
Can I humbly request you change the name of the function from push to unshift or prepend? Although it is completely my fault, I did not thoroughly read the instructions, and definitely wrote it as a push method.
Awesome kata. I would like to mention that when I left a 'byebug' line in the code, the system said I completed the kata. You may want to look into why the behavior occurred
Really challenging problem. I can't say if it is a 3 kyu or not, but definitely took me a bit to get it right. It would be interesting if you made a separate one that dealt more with efficiency. The top solution in ruby is elegant and really well thought out, but it can't handle moderately large numbers (anything in the 10 million+).
Regardless, great problem
This was really challenging, but a lot of fun. It was refreshing to having a kata that was simple to understand and difficult to execute efficiently and cleanly.
For people testing at home, I quickly wrote this to help create a randomize set of cards for testing.
This comment is hidden because it contains spoiler information about the solution
This was a great kata, but I would argue that it is closer to a 7/6 kyu difficulty level.
This comment is hidden because it contains spoiler information about the solution
This is a great problem! I had a simple solution to it (and it made it through ~350 tests before timing out), but it forced me to really think through an optimized way of handling large start points, and still allowed for a (somewhat) elegant solution.
This was a slog, and I don't feel like it was the best learning opportunity, especially when reviewing your solution. There were a lot of things that users can learn from a similar problem, such as memoization, or even algorithms relating to GCD (I didn't know there was a gcd function, so at least I learned something about the Euclidean method), but the problem was set up without those in mind. I also was not crazy about the fact that a 5kyu problem does not have an elegant solution. Hopefully you don't find this insulting, however (IMHO) the best Kata's are those that teach you something about algorithms, math concepts, or elegant writing, and this kata comes close in some regards, but just isn't there yet.
This comment is hidden because it contains spoiler information about the solution
Here are test cases for the ruby people, so they can understand indexing and what the output should be
This does not work in ruby (as you have it) because of the following
class Sudoku() #remove ()
def is_valid(self) #remove (self)
This is why some people are getting the \n error