Skip to main content
23 events
when toggle format what by license comment
Apr 13, 2017 at 12:39 history edited CommunityBot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Jan 7, 2014 at 20:50 comment added nitro2k01 I'm late to the party, but the question specifies a clear and restrictive list of the operators that are allowed. In the list is the math operator /. The string operator /, no so much...
Dec 10, 2013 at 9:14 comment added musefan @Howard: No thanks, you call it what you want. I am not making the rules on whats accepted so it doesn't matter what I think
Dec 9, 2013 at 17:04 comment added Howard @musefan Shall we start discussing that / is not a function but an operator???
Dec 9, 2013 at 16:23 comment added musefan @Doorknob: See recent comments on the question. They explain that your answer violates the rule and is why it has not been accepted. This could also be true for the other answers
Dec 9, 2013 at 14:06 comment added musefan @Doorknob: Actually, I don't see the problem with the C one. I think operators are fine. I think it means built-in functions that perform more process intensive action, such as splitting an array... of course, that just my understanding. Like you say, the OP should be more specific
Dec 9, 2013 at 14:04 comment added Doorknob @musefan Well, still, using your logic, all of these answers are completely disqualified. Maybe the OP needs to make the question more clear...
Dec 9, 2013 at 14:03 comment added musefan @Doorknob: yeah, but I can't be bothered to comment on all the answers. Yours has the most votes so I choose this one
Dec 9, 2013 at 13:08 comment added Doorknob @musefan Well, by that logic, the C answer breaks the rules because it uses operator< and operator-, the J answer breaks the rules because it uses *, the Perl answer uses s, the Mathematica uses Sqrt and ², etc.
Dec 9, 2013 at 10:22 comment added musefan Doesn't this break the rule of "You may not use any built-in functions"? (as defined here as built-in)
Dec 7, 2013 at 20:33 comment added Doorknob @PeterTaylor Nevertheless, that's the way GolfScript takes input, and the output is the same so that doesn't matter at all.
Dec 7, 2013 at 20:32 comment added Peter Taylor I said arguably cheating: the spec is vague on whether inputting and outputting a string is acceptable.
Dec 7, 2013 at 15:15 history edited Doorknob CC BY-SA 3.0
added 146 characters in body
Dec 7, 2013 at 14:54 comment added Doorknob @peter Why is this cheating? Also, if you use % instead of / the empty string will be removed, but it doesn't matter since the output is the same
Dec 7, 2013 at 11:30 comment added Peter Taylor @Quincunx, it splits the string, so if the input is '-3' it will create an array ['' '3']. The remove character, which would be a more sensible way to do this, is -. But this is in any case arguably cheating.
Dec 7, 2013 at 10:13 comment added Joe Z. I don't know any GolfScript, but it looks like / is the "remove" character.
Dec 7, 2013 at 6:10 comment added Justin It looks like you just remove all instances of the minus sign (what I would do if I knew a fast way of doing so). What does / do?
Dec 7, 2013 at 1:50 comment added Doorknob @Quincunx Done, 4 characters :)
Dec 7, 2013 at 1:50 history edited Doorknob CC BY-SA 3.0
added 119 characters in body
Dec 7, 2013 at 1:24 comment added Doorknob @Quincunx Challenge accepted ;) after I get back to a computer; commenting from a phone right now
Dec 7, 2013 at 0:56 comment added Justin Try writing a version that does support floating point (like my Befunge version now does)
Dec 6, 2013 at 23:39 history edited Doorknob CC BY-SA 3.0
added 85 characters in body
Dec 6, 2013 at 23:29 history answered Doorknob CC BY-SA 3.0