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.
This comment is hidden because it contains spoiler information about the solution
That position can't occur, as X moves first. The Kata description says we may assume the board is valid.
It's certainly more intricate than it needs to be ;)
The "View Solution" window that pops up under comments in the various discourse sections doesn't properly html escape solution code.
Such a thing might lead to an XSS attack, though I haven't poked at it.
Like any resource that suggests using regex to parse HTML, this kata needs to be taken out behind the barn and shot. It is ill-concieved and badly implemented.
My solution is fairly inelegant, but it uses xml.etree.ElementTree - a pythonic and appropriate tool for parsing HTML.
The argument "list" hides a built-in function - not good practice.
Nice kata, interesting to see how people approach this. =)
It might be helpful to clarify in the description that all the test cases will be in the range 1-3999 (the range expressible in basic roman numerals).
Otherwise, a nice Kata which handily illustrates how bonkers roman numerals are =)
Nice when a problem simplifies down to ~nothing. =D
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is a nice Kata. It seemed natural to view it as a classic topological sorting problem on the directed graph implied by the triplets.