Re: Create a string with (n) copies of the same character



"Dr J R Stockton" wrote:
For shortish strings, yours is faster. For longish strings,
mine is much faster...

Isn't that assessment entirely implementation-dependent?

No. Not entirely.

[O(N) discussion trimmed]

That only addresses your second assertion. I agree that yours is O(log N). No need to specify base 2, as I'm sure you know.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms.

.



Relevant Pages

  • Re: Resetting script statement counter
    ... Dr J R Stockton wrote: ... being able to turn that feature off in my browser's current ... window, preferably only for the current domain and never saved. ... Unsolicited commercial email will be read at a cost of $500 per message. ...
    (microsoft.public.scripting.jscript)
  • Re: Create a string with (n) copies of the same character
    ... "Dr J R Stockton" wrote: ... Dave Anderson ... Unsolicited commercial email will be read at a cost of $500 per message. ...
    (microsoft.public.scripting.jscript)

Loading