in reply to GOLF: Input sort list of integers, Output as [356853]

Your program isn't working if the input contains 0's, which I think wasn't ruled out. But for the program as given, there's an obvious save of 11 characters by leaving the "$l=$n=$c=0;" off. It's no warnings after all.

Abigail

  • Comment on Re: GOLF: Input sort list of integers, Output as [356853]

Replies are listed 'Best First'.
Re: Re: GOLF: Input sort list of integers, Output as [356853]
by BrowserUk (Patriarch) on May 27, 2004 at 13:55 UTC

    Well and good, but you kinda ruined the challenge...

    1. There is no point golfing the problem to some impossible target before you post it.
    2. The whole point of obscuring my solution is to encourage people to have a crack at it themselves before they look. That tends to find alternative approaches rather than everyone (or just you!) squeaking out an extra point here and there.

    But then, you know all that.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
      The whole point of obscuring my solution
      Eh, I don't know what you tried, but there was nothing obscured about it. At least, not for me.

      Abigail

        Eh, I don't know what you tried, but there was nothing obscured about it. At least, not for me.
        Well, I know now. From the page code:
        <table bgcolor="black"> <tr> <td> <font color="black"> <pre><tt class="code"><font size="-1">
        Nice try, but that was trumped by my stylesheet:
        body, li, td, pre, p, font, ul, input {background-color: #AC9C7E !im +portant;}

        Abigail