Activity for Kevin M. Mansourâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Recreate the Stack Overflow logo HTML + CSS, 29 + 677 (706) bytes HTML: ```html ``` CSS: ```css #S{box-sizing:border-box;position:relative;display:block;height:192px;width:163px;}#S div{position:absolute;bottom:0;left:0;box-sizing:border-box;width:155px;height:68px;border:17px solid #bcbbbb;border-top-width:0;backgro... (more) |
— | over 2 years ago |
Answer | — |
A: Guess the language! (Cops' Thread) Erlang (escript)), 43 bytes - cracked by Shaggy ``` main([])-> io:fwrite("Cops and Robbers"). ``` Printing `Cops and Robbers` as the challenge says. Try it online! (more) |
— | almost 3 years ago |
Answer | — |
A: "Hello, World!" PureScript, 25 bytes ``` main=log("Hello, World!") ``` Try it online! (more) |
— | almost 3 years ago |
Answer | — |
A: "Hello, World!" Lean, 64 bytes ```lean def helloworld:io unit:=putstr"Hello, World!"#eval helloworld ``` Try it online! (more) |
— | almost 3 years ago |
Answer | — |
A: "Hello, World!" Swift, 23 bytes ```swift print("Hello, World!") ``` Try it online! (more) |
— | almost 3 years ago |
Answer | — |
A: "Hello, World!" Kotlin, 34 bytes ```kotlin fun main(){print("Hello, World!")} ``` Try it online! (more) |
— | almost 3 years ago |
Question | — |
Is it good practice to change the names of variables in challenges? Today, I have posted my first challenge in Code Golf. I have made the Job in 202 byte. Someone in comments, have changed variables name. e.g: From `rot` to `o`, and this renaming have saved 2 bytes. So, Is it good practice to change the names of variables in challenges? (more) |
— | almost 3 years ago |
Answer | — |
A: Caesar shift cipher Javascript (V8), 202 97 bytes ```js o=>r=>o.replace(/[a-zA-Z]/g,o=>String.fromCharCode((o=(o=o.charCodeAt()+r)?o:o-26)) ``` Try it online! Since the text of input must be manually changed from the code, here is how to change it, Go to `console.log(rot("Hello World")(4));` and change text b... (more) |
— | almost 3 years ago |