Friday Hacks #145, November 17

Posted on by Suyash

It’s the last Friday Hacks of the semester, and to end it off with a blast (before we rush to catch up with all our webcasts during the reading week), instead of having talks, we will be having a Code Golf Challenge!

Date/Time: Friday, November 17 at 7:00pm
Venue: SR3, Town Plaza, University Town, NUS

Code Golf

Talk Description:

Code Golfs are programming challenges with a twist - shortest solutions win! So, forget your programming languages’ best practices. See how well you know your favourite languages and pit your skills against other attendees!

We’ll be making use of GitHub to run the challenge, so be sure to create a GitHub account at https://github.com before you arrive!

You’ll be allowed to use your favourite programming language. Further challenge details will be revealed on the day itself!

Semester Afterparty: Come celebrate the end of this semester with us! There will be free beer after the code golf. On us :)

P.S. Here is a solution to the n queens problem: int v,i,j,k,l,s,a[99];main(){for(scanf("%d",&s);a-s;v=a[j=v]-a[i],k=i<s,j+=(v=j<s&&(!k&&!!printf(2+"\n\n%c"-(!l«!j)," #Q"[l^v?(l^j)&1:2])&&++l||a[i]<s&&v&&v-i+j&&v+i-j))&&!(l%=s),v||(i==j?a[i+=k]=0:++a[i])>=s*k&&++a[–i]);printf("\n\n");}

See you at Code Golf!

Speaker Profile

The challenge will be hosted by Kuan Wei Heng, a veteran code golfer who has been golfing for years!

comments powered by Disqus