« first day (3406 days earlier)      last day (1423 days later) » 

12:24 AM
0
A: Sandbox for Proposed Challenges

BubblerCut resistance of a list code-golf array-manipulation Background Define a run in a list as a maximal contiguous subsequence of identical values. For example, the list 0 0 0 1 1 0 3 3 3 2 2 has five runs of lengths 3, 2, 1, 3, 2 respectively. (Think of run-length encoding.) Then define a cut...

 
 
2 hours later…
2:03 AM
0
A: Sandbox for Proposed Challenges

BubblerBubbler numbers code-golf number binary decision-problem Background My user ID is 78410, or \$1 0 0 1 1 0 0 1 0 0 1 0 0 1 0 1 0_2\$. One interesting property of this number is that, in binary, it doesn't have three consecutive identical digits, and yet it has a substring \$100100100\$ which i...

 
 
8 hours later…
10:13 AM
hi all
 
@Anush So, did it arrive?
 
0
A: Sandbox for Proposed Challenges

NeilIs this a simple cutting template? Input: A diagram of a rectangle subdivided into smaller rectangles, or a list of rectangles in some standard format, e.g. position and size. Output: A truthy value if the template can be recursively cut into rectangles using only full width cuts. If you prefe...

 
@Adám Yes! You were 100% right :)
 
10:42 AM
0
A: Sandbox for Proposed Challenges

my pronoun is monicareinstateDetermine the area enclosed by slashes code-golf ascii-art For example, let's look at the following ASCII art: /\ - encloses a total of 2 cells - half a cell per slash \/ /\ - encloses 4 cells fully and half of 8 cells, for a total of 8 / \ \ / \/ Your challenge is to determine the ...

 
 
6 hours later…
4:40 PM
0
Q: Find all Belphegor primes

MukundanA Belphegor number is a number of the form \$(10^{n+3}+666)*10^{n+1}+1\$ (1{n zeroes}666{n zeroes}1) where \$n\$ is an non-negative integer. A Belphegor prime is a Belphegor number that is also prime. The \$n\$ values of the first few Belphegor primes are 0, 13, 42, 506 (A232448) Task Write a ...

 
5:04 PM
0
Q: Pairs with Sum divisible by 5

Jubayer Abdullah JoyYou will be given two integers \$M\$ and \$N\$. Find the number of pairs \$(x,y)\$ such that \$1 \le x \le M\$, \$1 \le y \le N\$ and \$(x+y)\mod5 = 0\$. For example, if \$M = 6\$ and \$N = 12\$, pairs which satisfies such conditions are, \$(1,4), (4,1), (1,9), (2,3), (2,8), (3,2), (3,7), (3,12)...

 
 
2 hours later…
7:19 PM
-1
Q: Find the Nearest Value to int in a giving set

Kasem007How can I find the nearest Value without using a lambda function? I have found the answer using lambda function but I don't really understand what is happening. def nearest_value(values, one): if one in values: return one else: return min(values, key=lambda x: abs(x - one...

 
8:16 PM
anyways, I finally got off my lazy ass and posted my question almost two weeks after mentioning it here
0
A: Sandbox for Proposed Challenges

Ethan SlotaPrice this word code-golfnumberstring So, I'm going shopping in the Word Marketâ„¢. There are shelves of words which I can buy around me, but I only have one dollar bills and the change machines at the market are broken. To add to the problem, there are words with... non-word characters in them. T...

 
0
A: Sandbox for Proposed Challenges

Ethan SlotaPrice this word code-golfnumberstring So, I'm going shopping in the Word Marketâ„¢. There are shelves of words which I can buy around me, but I only have one dollar bills and the change machines at the market are broken. To add to the problem, there are words with... non-word characters in them. T...

 
 
1 hour later…
9:27 PM
2
Q: Judge a book by its cover

math junkieOverview The cover of a book will be provided in the following ASCII format: ______ | | | | | | | | ------ The input can be in any reasonable format (eg. a list of strings, a nested list of characters, etc.) Inside the "borders" of the cover, other printable ascii characters migh...

 

« first day (3406 days earlier)      last day (1423 days later) »