# Tag Info

### Longest common substring in linear time

Python 2, 646 bytes ...
• 5,859

### Powerprogramming: O(1^N), O(N^1), O(2^N), O(N^2) all in one

Python 3, 102 bytes try:l=eval(input());k=1#)]0[*k**l(tnirp except:k=2#2=k:tpecxe print(k**l*[0])#1=k;))(tupni(lave=l:yrt Try it online! This is of O(1^n), ...
• 49.6k

### Give a permutation with no two consecutive integers next to each other

Jelly, 3 2 bytes ḂÞ Sorts the integers in [1, ..., n] by their LSB. Try it online!
• 210k

### Efficient Bytewise FizzBuzz

JavaScript (Node.js), 145 bytes Saved 2 bytes thanks to @user202729 Expects a BigInt. Outputs # instead of \n for readability. <...
• 188k

### Powerprogramming: O(1^N), O(N^1), O(2^N), O(N^2) all in one

Perl 5, 82 73 71+1 (for -n flag) = 72 bytes I'm certain I can golf this (a lot) more, but it's bedtime, I've spent enough time debugging as is, and I'm proud of what I have so far anyway. ...
• 1,949
Accepted

• 6,151

### Circular Limited Sums

Python with numpy, 59 bytes lambda M,N:trace(mat(tri(M+1)[::-1])**N) from numpy import* Try it online! Uses matrix multiplication to count paths. If float ...
• 144k

### Give a permutation with no two consecutive integers next to each other

Python 3, 40, 38 bytes lambda n:[*range(1,n,2),*range(0,n,2)] Try it online! This runs in O(n) time. Thanks to Dennis for ...
• 58.9k

### Efficient Bytewise FizzBuzz

Python 2, 216 212 209 189 183 182 bytes ...
• 165k

### Project Euler 1: Multiples in constant time

APL (Dyalog Extended), 31 bytes -/+/(⎕+⍳2)(⊢×2!⌈⍤|⍤÷)\∊(⊢,∧)\-⎕ Try it online! Full program which takes the list of divisors, and then the ...
• 73.8k

### An Scalable Event Scheduler That Can Handle Billions of Events

Proof that this challenge is impossible without extra assumptions I'm assuming here that we can't take advantage of the fact that the range of a Time is limited, ...

### Compute cumulative means efficiently

APL(Dyalog Unicode), 19 20 bytes SBCS Added 1 byte to fix handling of trailing integers. (⌈¯2-/⌊,⊢/)⊢⍤/+\÷⍳⍤≢ Try it on APLgolf! ...
• 58k
Accepted

### Maximise the squared difference

Jelly, 24 21 15 14 10 9 bytes RUĖµ«/€ị" To compute the total squared difference, append µ_ṙ1\$²S to the code. Try it online! ...
• 210k