in reply to Re: Difference arrays.
in thread Difference arrays.

Big bug

Just found it when I was examining kyle's solution.

swap p and q and your routine will fail!

Sorry! Not a bug! My mistake!


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^3: Difference arrays.
by betterworld (Curate) on Sep 04, 2008 at 21:35 UTC

    I noticed that your solution is symmetric because it has the abs in it. However I was taking BrowserUk by the word: "those in the first not in the second".

    Given the restriction "one a proper subset of the other", it does not matter, and our solutions print essentially the same elements (maybe in a different order).

      Something I learned again: Keep your big mouth shut until you read a second time ;-) So Sorry for crying too early. MINE has the bug. I've added comments above.


      s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
      +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e