in reply to Re^2: Check if string A and B are made up of same chars
in thread Check if string A and B are made up of same chars

Yes, it seems so - to be honest: I didn't quite understand his specs. And aren't you neglecting the length in your example? But he can certainly adapt the example.
  • Comment on Re^3: Check if string A and B are made up of same chars

Replies are listed 'Best First'.
Re^4: Check if string A and B are made up of same chars
by LanX (Saint) on Nov 17, 2024 at 19:09 UTC
    > And aren't you neglecting the length in your example?

    Nope, different length will fail. (See also second test)

    But yes, I was only concentrating on the essential part, his "specs" are indeed a bit fuzzy.

    Anyway, there's no point in optimizing for speed if the problem-space is under-defined

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery