Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for Shaggy‭

Type On... Excerpt Status Date
Edit Post #286971 Initial revision about 2 years ago
Answer A: Create a range grid
Japt `-m`, 4 bytes VÆT° Try it
(more)
about 2 years ago
Edit Post #286970 Initial revision about 2 years ago
Answer A: Make a frequency table (histogram)
Japt, 8 bytes ü ®â pZl Try it
(more)
about 2 years ago
Comment Post #286632 [32 bytes](https://tio.run/##RY3BCoMwEETP5iv2JAmsUttqDxJ/RHIIxpQWa8QEL2J/PU1SSmHYGR7DzlNu0g7rY3HFbNToNfeSd7J8yYVuvFP9JnjxjoaK7wfLc@UHM1sHbrTOAoeeZH2FEHRGuCDUCE2QwMDTqRK4/SpNUsh1KF9DOgkiWkK0WYH@X4PR3wkGO8kiN9NYTuZOI0XQyRlryeE/)
(more)
about 2 years ago
Edit Post #286969 Initial revision about 2 years ago
Answer A: Find n Niven Numbers
Japt, 10 bytes ÈvXìx}jU1ì Try it
(more)
about 2 years ago
Comment Post #284951 Does the case of the output matter? Can we output all lowercase or all uppercase?
(more)
almost 3 years ago
Edit Post #284746 Initial revision about 3 years ago
Answer A: "Hello, {name}!"
JavaScript, 28 bytes alert(`Hello, ${prompt()}!`) Try it online!
(more)
about 3 years ago
Comment Post #284516 https://tio.run/##zZRBbsIwEEXX@BTe2VaCM3ZbJFolHKJLYBGmtguKbJRYCAk4ewpOpfYG@K9m3t@81T@0p3bAfn@Mcx@@zGjr8Vw3Z9mbY9ei4RWXUmzUBcqFvlWu5Fg6UTfYMGTXK67ftiuulrpA2Rnv4nelhYzhM/Z777haiMK9oxgx@CHSaIY40JquyYwBgAINL/DKyumFhBRAAjuzswioUP/vn5QMFDKRyEbjV8Q@NRkoZCKRjUYS2X4QYkNP@d/u0GCn/RH0QmYPHjoju@B4agvKNp7OG8rup01...
(more)
about 3 years ago
Edit Post #284520 Initial revision about 3 years ago
Answer A: Operation "Find The Operator"
Japt, 16 bytes Takes the result as the first input and the other 2 values as an array as the second input. Uses `z` for floor division & `p` for exponentiation and outputs `"` if there's no match (costing 3 bytes :\\) "+-z%p"ƶVrXêQ Try it
(more)
about 3 years ago
Comment Post #284463 Is there an option to not have them at all? I don't see what value they'd add that isn't already covered by being able to upvote or downvote a solution? If they awarded rep then maybe I could see value in the "Works for me" one if it awarded twice the rep - a way of awarding a bounty to a solution un...
(more)
about 3 years ago
Edit Post #282202 Post edited:
about 3 years ago
Comment Post #284407 Can we use our language's native operators (e.g., `p` in Japt for exponentiation)? I'm guessing from your use of `.` in the test cases we can. Also, you need to mention that `/` is floor/integer division.
(more)
about 3 years ago
Comment Post #284145 [46 bytes](https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUSHPKjpPN1MrUyG/SCG1IrNEw1AzDcjMVMjMUyhKzEtP1TDUztOM/Z@mYaD5HwA) as a lambda.
(more)
about 3 years ago
Comment Post #284145 Could you reverse the condition to get it down to [52 bytes](https://tio.run/##K6gsycjPM7YoKPr/Py2/SCFTITNPoSgxLz1Vw1Bbo8LKNjOvRCMzr6C0REMTCKwqdDO1MhWAClMrMks0DDX//zcAAA)? (not a Python guy so it'll need verifying)
(more)
about 3 years ago
Edit Post #283771 Post edited:
about 3 years ago
Edit Post #284041 Post edited:
about 3 years ago
Edit Post #284110 Post edited:
about 3 years ago
Edit Post #284186 Post edited:
about 3 years ago
Edit Post #284187 Initial revision about 3 years ago
Answer A: Collatz conjecture; Count the tries to reach $1$
JavaScript, 28 bytes f=n=>n-1&&-f(n%2?n3+1:n/2) Try it online!
(more)
about 3 years ago
Edit Post #284186 Initial revision about 3 years ago
Answer A: Collatz conjecture; Count the tries to reach $1$
Japt, 15 bytes É©Òß[U3ÄUz]gUv Try it É©Òß[U3ÄUz]gUv :Implicit input of integer U É :Subtract 1 © :Logical AND with Ò :Negate the bitwise NOT of (i.e., increment) ß :Recursive call with inp...
(more)
about 3 years ago
Comment Post #284132 This _does_ nothing if the input isn't square. [This 44 byte version](https://tio.run/##K8go@P/fxr4go0AhNTkjX0Ol0ra4sKhEQ6XCNi09taRYIzjExdNPU1NTCyhjq1Jh/f@/AQA), though, will _output_ nothing, which is falsey, if the input isn't square. Although, it can be done in at least 26 bytes ;)
(more)
about 3 years ago
Comment Post #284145 This exits with `0` for both 0 & 1, which are perfect squares.
(more)
about 3 years ago
Comment Post #284127 https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVE&code=4CD8yst4X9cqSnBF&input=WzEsIDIsIDNd The `*JpE` is annoying me but I can't figure out a way to shorten it right now.
(more)
about 3 years ago
Edit Post #283158 Post edited:
about 3 years ago
Edit Post #283158 Post edited:
about 3 years ago
Edit Post #283158 Post edited:
about 3 years ago
Comment Post #284117 https://tio.run/##K8go@P/fxt5WCYhjVBKL0suiDWO1YQxrJev///8bGgAA
(more)
about 3 years ago
Comment Post #284091 https://tio.run/##K8go@P/fIzUnJ19HwcbeViWxKL0s2jDW3k7x////volF2QrumUWJaWmpAA
(more)
about 3 years ago
Edit Post #284120 Initial revision about 3 years ago
Answer A: Reverse an ASCII string
Rockstar, 67 bytes listen to S split S O's"" while S roll S into C let O be C+O say O Try it here (Code will need to be pasted in)
(more)
about 3 years ago
Edit Post #284119 Initial revision about 3 years ago
Answer A: Evens or Odds - you know this one
Rockstar, 44 bytes Outputs `1` for odd or `0` for even. listen to N let M be N/2 turn up M say M2-N Try it here (Code will need to be pasted in)
(more)
about 3 years ago
Edit Post #283939 Post edited:
about 3 years ago
Edit Post #284118 Initial revision about 3 years ago
Answer A: A number adder, not a death adder
Rockstar, 40 bytes listen to N say "listen to N say N-0+"+N Which outputs P2, where `X` is the input from P1: listen to N say N-0+X Try it here (Code will need to be pasted in)
(more)
about 3 years ago
Edit Post #284112 Initial revision about 3 years ago
Answer A: Repeat the characters
Rockstar, 90 bytes listen to S split S listen to N O's"" while S roll S into C let C beN-0 let O be+C say O Try it here - code will need to be pasted in; `s` goes on the first line of input (leave blank for the empty string) and `n` goes on the ...
(more)
about 3 years ago
Edit Post #284111 Initial revision about 3 years ago
Answer A: Repeat the characters
JavaScript, 36 bytes s=>n=>s.replace(/./g,`$&`.repeat(n)) Try it online!
(more)
about 3 years ago
Edit Post #284110 Initial revision about 3 years ago
Answer A: Repeat the characters
Japt `-m`, 2 bytes pV Try it pV :Implicit map of first input string p :Repeat V :Second input times
(more)
about 3 years ago
Edit Post #284039 Post edited:
about 3 years ago
Edit Post #284068 Initial revision about 3 years ago
Question Digit Sum Integer Sequence (working title)
Inspired by this challenge. If anyone has any suggestions for a song title I could use for the challenge title then please leave a comment. Definition We define `f(x)` for a given integer as the sum of: - `x` itself, - `s`, the smallest digit in the decimal representation of `x`, and, - `l`, t...
(more)
about 3 years ago