Activity for Shaggy
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #283107 |
Correct, @#53310; do you want to post that to the robbers' challenge? (more) |
— | over 3 years ago |
Edit | Post #282982 |
Post edited: |
— | over 3 years ago |
Edit | Post #282982 |
Post edited: |
— | over 3 years ago |
Edit | Post #283158 | Initial revision | — | over 3 years ago |
Answer | — |
A: 99 Shortened Bottles of Beer Japt, 117 116 115 bytes Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks trick from ETHProductions' original version. Includes 2 trailing newlines. ´LÇ=L+` Þ¤{´LÎçs} Þ8`". {=Z+` e Ø!`}, {Z}. {LÎg`Go e ÐJe d ¿y Ñ Ú ... (more) |
— | over 3 years ago |
Comment | Post #283130 |
Ah, well, if you're deliberately trying to avoid that, then ...
Personally, I see no harm in it; the optimal solution is the optimal solution, regardless of whether or not someone has already posted it elsewhere. Although, if you're just copying it directly then an acknowledgement of the original ... (more) |
— | over 3 years ago |
Comment | Post #283137 |
Strictly speaking, both outputs here are truthy as they're both non-empty strings. (more) |
— | over 3 years ago |
Comment | Post #283140 |
Can you add a [TIO](https://tio.run/) or equivalent, please? (more) |
— | over 3 years ago |
Edit | Post #282982 |
Post edited: |
— | over 3 years ago |
Edit | Post #282310 |
Post edited: |
— | over 3 years ago |
Edit | Post #282305 |
Post edited: |
— | over 3 years ago |
Edit | Post #282303 |
Post edited: |
— | over 3 years ago |
Edit | Post #279287 |
Post edited: |
— | over 3 years ago |
Comment | Post #283135 |
While, technically, `v1` _does_ check if a number is an integer, what the `v` method actually does is check if the number it's applied to is divisible by the argument passed to it (which defaults to 2). (more) |
— | over 3 years ago |
Comment | Post #283135 |
[3 bytes](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=rHYx&input=WzAgMSA2NCA4OCAyMTQ3NDgzNjQ3XQotbVM) (more) |
— | over 3 years ago |
Comment | Post #283133 |
Fails for `0`, which should be truthy. I think you'll need `√∊0,⍳`, unless APL has a 0-based range built-in. (more) |
— | over 3 years ago |
Comment | Post #283132 |
Welcome to Code Golf :) You can save a byte with `.5` instead of `0.5`. (more) |
— | over 3 years ago |
Comment | Post #283130 |
You should be able to get this down to 24 by mapping and squaring the range and then checking if it contains `a`. (more) |
— | over 3 years ago |
Comment | Post #283129 |
And, with regard to the note at the end, your solution should work for _all_ possible inputs, without modification. (more) |
— | over 3 years ago |
Comment | Post #283129 |
This seems to return `false` for all squares greater than `4`. Also, we're not restricted to using TIO; you can use another online interpreter that has the features you need. (more) |
— | over 3 years ago |
Edit | Post #283128 | Initial revision | — | over 3 years ago |
Question | — |
It's Hip to be Square Challenge A catalogue type challenge that simply asks: Given an integer `n` (where `n>=0`) as input return a truthy value if `n` is a perfect square or a falsey value if not. Rules - You may take input by any reasonable, convenient means. - You need not handle inputs greater than what your ch... (more) |
— | over 3 years ago |
Comment | Post #283126 |
PicoLisp: https://codegolf.codidact.com/posts/283127#answer-283127 (more) |
— | over 3 years ago |
Edit | Post #283127 | Initial revision | — | over 3 years ago |
Answer | — |
A: Guess the language! (Robbers' Thread) Cracks Mark Girrafe's answer: PicoLisp A sneaky search of TIO's GitHub org revealed this one ;) (prinl "Cops and Robbers")(bye) Try it online! (more) |
— | over 3 years ago |
Edit | Post #283107 |
Post edited: |
— | over 3 years ago |
Comment | Post #283107 |
Not my intended solution(s), @#53579; I hadn't thought of languages that behave like that - should've stuck with my original version instead of opting for the shorter one or, at least, stated that the solution should be irreducible. Have the "W" nonetheless, but I won't reveal the intended solution j... (more) |
— | over 3 years ago |
Edit | Post #283107 |
Post edited: |
— | over 3 years ago |
Edit | Post #283107 | Initial revision | — | over 3 years ago |
Answer | — |
A: Guess the language! (Cops' Thread) Rockstar, cracked by Hakerh400, 126 bytes I never thought of languages that would ignore everything except the strings - I should have stated that the solution should be irreducible. Hakerh400 gets the win here but Razetime got the correct answer after the fact. Let the cops be "Cops" ... (more) |
— | over 3 years ago |
Edit | Post #283094 |
Post edited: |
— | over 3 years ago |
Edit | Post #283094 |
Post edited: |
— | over 3 years ago |
Comment | Post #283094 |
It is indeed JSFuck, @#53837, nicely done. The shorter version will only work in Firefox v90+ but the longer version works in Node. You will need to override `alert` with `console.log`, though. (more) |
— | over 3 years ago |
Edit | Post #282967 |
Post edited: |
— | over 3 years ago |
Edit | Post #283094 |
Post edited: |
— | over 3 years ago |
Edit | Post #283094 | Initial revision | — | over 3 years ago |
Answer | — |
A: Guess the language! (Cops' Thread) JSFuck, cracked by user, 6106 bytes With honourable mention to AndrewTheCodeGolfer who first recognised it as JavaScript. This version will only work in Firefox v90+. [][(![]+[])[+!![]]+(!![]+[])[+[]]][([]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+!![]]+(!![]... (more) |
— | over 3 years ago |
Comment | Post #283089 |
Rust: https://codegolf.codidact.com/posts/283093#answer-283093 (more) |
— | over 3 years ago |
Edit | Post #283093 | Initial revision | — | over 3 years ago |
Answer | — |
A: Guess the language! (Robbers' Thread) Cracks Mark Girrafe's answer: Rust fn main(){print!("Cops and Robbers")} Try it online! (more) |
— | over 3 years ago |
Comment | Post #283090 |
F#: https://codegolf.codidact.com/posts/283092#answer-283092 (more) |
— | over 3 years ago |
Edit | Post #283092 | Initial revision | — | over 3 years ago |
Answer | — |
A: Guess the language! (Robbers' Thread) Cracks Mark Girrafe's answer: F# printfn"Cops and Robbers" Try it online! (more) |
— | over 3 years ago |
Edit | Post #282979 |
Post edited: |
— | over 3 years ago |
Edit | Post #282970 |
Post edited: |
— | over 3 years ago |
Suggested Edit | Post #282967 |
Suggested edit: (more) |
helpful | over 3 years ago |
Suggested Edit | Post #282970 |
Suggested edit: (more) |
helpful | over 3 years ago |
Suggested Edit | Post #282979 |
Suggested edit: (more) |
helpful | over 3 years ago |
Edit | Post #283080 | Initial revision | — | over 3 years ago |
Answer | — |
A: Guess the language! (Robbers' Thread) Cracks Quintec's answer: Canvas My first clue was the `echp`; if the language used `echo` then why wouldn't it error on that? The second clue was that the last line contained the exact output we needed so I suspect that we're looking for a golfing language that ignores all but the last line of a ... (more) |
— | over 3 years ago |