Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • \$\begingroup\$ You have a LOT of spaces at the end of each line, the file as you posted it has 2732 bytes. \$\endgroup\$ Commented Jan 14, 2014 at 5:27
  • \$\begingroup\$ @aditsu That should be fixed now \$\endgroup\$ Commented Jan 14, 2014 at 12:52
  • \$\begingroup\$ Size is still wrong, should be 555 now :) Also I wonder if you can still save a few bytes by using more semicolons. \$\endgroup\$ Commented Jan 14, 2014 at 13:03
  • \$\begingroup\$ Bug? Input: 6 000000 011221 121121 122221 011110 000000 4 0 1 Output: 0. Added now as example 4. \$\endgroup\$ Commented Jan 14, 2014 at 13:37
  • \$\begingroup\$ That bug is fixed, I also found and fixed another bug while golfing it that you may want to add as an example. Input: 5 22100 20211 12211 12120 01120 1 1 2 Output should be 0. \$\endgroup\$ Commented Jan 14, 2014 at 15:06