Skip to content

Instantly share code, notes, and snippets.

View AdamTReineke's full-sized avatar

Adam Reineke AdamTReineke

View GitHub Profile
@kokx
kokx / Facebook Hackercup Solutions.md
Last active December 11, 2015 21:09
Solutions to Facebook Hackercup. Feel free to fork and make improvements! I didn't really take much time to write this, so help on clarifying the text is very much appreciated!

Disclaimer: I have no idea if this are indeed the correct answers. I just solved the exercises like this. I think that they are right though.

I have added my own code to this gist. It is ugly as hell, just like you can expect from code created in a contest like this.

Beautiful Strings

Difficulty: easy

It is simple to see that a greedy solution is good enough.