My third word search related challenge in a row. :)
Challenge:
Brief explanation of what a word search is:
In a word search you'll be given a grid of letters and a list of words. The idea is to cross off the words from the list in the grid. The words can be in eight different directions: horizont...
(someone laugh at that please I need validation from internet strangers that my low effort jokes are funny and that I'm not wasting my life by staying awake until past midnight trying to get starred messages)
TI-BASIC, 15 bytes.
:"Hello, World!
Note: you couldn't normally enter this on an actual calculator, as there's no way to enter lowercase letters, but you can insert this with a pc and it works
@xiver77 you probably went to the old Java.com. on the oracle website, there is a download for Java 17. also this has prebuilt binaries for OpenJDK, the reference implementation of Java. I had successfully installed Java 17 on my RPI using this
exchange I just had: Random person: What're you working on? Me: *points at pcb designer* optagon Random person: That's fire Me: ...no, it's an optagon.
What general tips do you have for golfing in Python? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Python (e.g. "remove comments" is not an answer).
Please post one tip per answer.
Given a integer as input, output that integer, but with it's bits rotated two times to the right.
Test cases:
24 -> 6
21 -> 13
32 -> 8
0 -> 0
1 -> 1
3 -> 3
Remember that this is code-golf, so the shortest answer in bytes wins!
Also, here's a snippet for the leaderboard:
var QUESTION_ID=47338...
@graffe somewhat related SO post (not precisely that, but I'd guess it wouldn't be too hard to switch between intersection/union and min/max) without any useful results, so I doubt it. Doesn't seem like there'd be any fancy solution
Lexicographical orders
code-golfnumberarray
This is similar to my lexical sum challenge
Your task is given an integer n and another integer g, output an array which is a strictly decreasing array and its lexicographical order is the smallest for any possible outputs for the sum n. However, you ha...