Ad
  • Custom User Avatar

    Rule number 1 it must erase all characters except +-<>,.[].

  • Custom User Avatar

    Originally this was devised for Haskell. In haskell this exercise not just makes sense, but it exposes one of the core features of Haskell, namely lazy evaluation. In javascript, I think this is a "can be done", but not easily or neatly and the usefulness is more debatable. Don't worry about it too much if you are coming from Javascript.

    If you still want to understand what this is about: generate gives something, that represents an infinte 2D lattice.Lazyness comes in handy in representing infinte sctructures..
    You have to find a particular point on the lattice (grid/mesh whatever you want to call it), but while you are searching, you have to make sure you don't fall into infinite loops. For instance you can't just check the first row first, as if it doesn't contain the point then you never finish.

  • Custom User Avatar

    Upon going through this discussion, the following instructions may help in solving the kata:

    "Find the greatest difference in length for any possible pairing of strings between Array1 and Array2".