Sigrid Solveig Haflínudóttir3/2: shorter39759654 years agoHistory
10 lines · 295 B · Text
RawDownload
BEGIN{q["m"]=q["l"]=FS=""}{x=0;for(k=1;k<=NF;k++)w["m"NR]=w["l"NR]=x=x*2+(b["m"NR,k]=b["l"NR,k]=$k)}END{	for(i=1;i<k;i++)for(p in q){		delete r;y=n=0;		for(j in w)if(j~p){y+=r[j]=b[j,i];n++}		if(n>1)for(j in r)if(r[j]!=(p~"m"?y*2>=n:y*2<n))delete w[j]	}	x=1;for(t in w)x*=w[t];print x}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t