Generating permutations in Prolog is hella elegant:
perm([], []).
perm(List, [Elem|Permutation]) :-
select(Elem, List, Rest),
perm(Rest, Permutation).
theweeklychallenge.org
🐪 Complex Number
×⍢({j./⍎¨'+'cut†⍵}⇔{'i',⍨'+'joinstring⍕˝+.⍵})
projecteuler.net/problem=3
N←1000000
⊐(♯˜0=|∘600851475143)1+⍸↓0(1,;{<↓⍵×1+⍳⌊N÷⍵}¨↓1+⍳⌊√N)⊙(N+1)⍴1
Edward Banner retweeted
Hello again, world!
Hacker News has been pretty quiet on X. Time to fix that.
Starting today, we'll be sharing interesting things people are building, discovering, and discussing on HN.
And let us know what's caught your eye lately. There's always room for another great link!
Never really thought about it, but this is an insane aura gamble
Gael Monfils spoke in the U.S. Open press room about why he hit this insane leaping forehand:
“2 sets to 1, a break up, happy… why not? 😂 I won’t hit many more to be honest. Why not? Yes, it’s harder. Somehow, it produces more happiness, more joy for me.”
Sums up Gael, his tennis, and his legacy beautifully. 🥹
🔥 freecodecamp.org/learn/daily…
Array Duplicates
{↑"1(♯˜1<⊐"1)(↑,≢)⌸⍨⍵}
🔥 freecodecamp.org/learn/daily…
🟢 Kaprekar's Routine
({⍵[⍒⍵]}⍢⍕)-({⍵[⍋⍵]}⍢⍕)
🔥 freecodecamp.org/learn/daily…
Mile Pace
split←chopstring
join←{(⍕0⌷⍵),⍺,(⍕1⌷⍵)}
serde←((60∘⊥)⍤((⍎¨)⇔(⍕¨))⍤((':'∘split)⇔(':'∘join)))
{÷∘⍺⍢serde⍵}
🖥️ educative.io/daily-coding-ch…
Number of Black Blocks
{≢⌸⍨,2 2(+/⍤,)⌺¯3⊢1⍺⊙⍵⍴0}










