# Tag Info

1 vote

### Find the most isolated point

vemf, 13 bytes, O(n²) Boring quadratic solution as a function that takes two lists of vectors. Could maybe be shorter with complex numbers? ...
• 151

### Find the most isolated point

K (ngn/k), $O(N^2)$, 22 bytes A function that takes $P$ and $T$ as its first, and second argument, respectively. ...
• 561

### Find the most isolated point

Google Sheets, $O(n^2+)$, 109 bytes let(d,map(x,y,lambda(x,y,min(map(z,t,lambda(z,t,sumsq(z-x,t-y)))))),index({x,y},+sort(sequence(rows(d)),d,))) This is a named ...
• 1,705

### Find the most isolated point

Charcoal, 25 bytes, O(n²) ≔Ｅθ⌊ＥηΣＥλＸ⁻ν§ιξ²η⭆¹§θ⌕η⌈η Try it online! Link is to verbose version of code. Explanation: ...
• 172k
1 vote

### Find the most isolated point

Python, $\mathcal{O}(n^2)$, 72 bytes lambda P,T:max(P,key=lambda p:min((p[0]-X)**2+(p[1]-Y)**2 for X,Y in T)) Using math.dist ...
• 5,532
1 vote

### Distance between two points in n-dimensional space

Go, 97 bytes import."math" func f(p,q[]float64)(d float64){for i:=range p{d+=Pow(p[i]-q[i],2)} return Sqrt(d)} Attempt This Online!
• 9,776
1 vote

### Find the most isolated point

JavaScript (ES7), $\mathcal{O}(n^2)$, 90 bytes Expects (P)(T). ...
• 193k
1 vote

### Find the most isolated point

APL+WIN, 26 bytes Prompts for T then P as nested vectors of points: P[↑⍒(+/¨((P←⎕)∘.-⎕)*2)*.5] Try it online! Thanks to Dyalog Classic
• 6,286

### Draw the South Korean flag

Chipmunk Basic, 612 603 bytes Latest beta of Chipmunk Basic (v368b2.02) on MacOS. The code is saved to a file korea.bas, then loaded and run from the application ...
• 2,944

### A cube of text឵

Vyxal, 13 bytes L?∞Ṫ»∨¹0²H»ø∧ Try it Online! Indirectly -1 byte thanks to Kevin Cruijssen, I forgot how canvas operator overloading works. ...
• 38.8k
1 vote

### A cube of text឵

Ruby, 114 bytes ->s{t="#{" "*w=2*v=s.size} "*u=w-1 v.times{|i|9.times{|j|t[[u*v,~v,u][j/3]-[1,~w,w][j%3]*~(j%-4/3*2)*i]=s[~i]}} t} Try it ...