Quantcast
Channel: Word Search Helper - Code Golf Stack Exchange
Browsing latest articles
Browse All 6 View Live

Answer by l4m2 for Word Search Helper

JavaScript (Node.js), 135 bytesf=(s,n=8)=>n?[s.flatMap(t=>t.join``||[]),...f([...Array(L=(s+0).length)].map((_,y,p)=>p.map((_,x)=>(s[y+x-L>>1]||0)[(x-y)/2])),n-1)]:[]Try it...

View Article



Answer by Kevin Cruijssen for Word Search Helper

05AB1E (legacy), 24 bytes4F=íøDεÐS0:«NFÁ}}øí0мõK,Input as a list of lines; outputs as list of strings as well, each on a separated newline to STDOUT.Try it online.Explanation:Unfortunately 05AB1E...

View Article

Answer by caird coinheringaahin g for Word Search Helper

Jelly, 13 bytesKṄḲZUÇƊƬŒDÇ€Try it online!Ok, so this is fairly liberal with I/O, but I don't think any of the assumptions are a major issue:The output for each row is in a different order than...

View Article

Answer by Luis Mendo for Word Search Helper

MATL, 40 bytest!tP!tP!GXKZyqXI"IZ}w_w2$:"K@2$Xd!]K!XKxInput is a 2D char array in Matlab notation:['ABCDE'; 'FGHIJ'; 'KLMNO'; 'PQRST']The output contains each "word" on a separate line.Try it online!t...

View Article

Answer by Erwan for Word Search Helper

Python 3, 181 bytesdef f(s): for k in [1,0]*4: b=list(zip(*[(['']*(len(s)-1-n)*k+list(i)+['']*n*k)[::-1] for n,i in enumerate(s)])) print([''.join(i).replace('','') for i in b]) if...

View Article


Word Search Helper

I've been doing word searches recently, and I thought it would be so much easier if all of the words read left-to-right. But rewriting all the lines takes a lot of effort! So I'm enlisting code golfers...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images