/algorithms

algorithms playground for common questions

Primary LanguageRuby

Algorithms

Algorithms playground for common questions solved in ruby syntax.
In case you want to prepare yourself for a job interview - try to solve it yourself first, then have a look here.

Problems

#How?
Simply take a look at the lib folder, all the code is there. In case you want to run any function, look at the test folder to see some samples.
BracketsCombinations.perform('', 0, 0, 3)
will print:
((()))
(()())
(())()
()(())
()()()

Why?

I interviewed with Google, Facebook, Twitter, LinkedIn and others. Sometimes it looks like they all ask you the same "out of the box" questions that don't really check knowledge but memorization of the same tricks. This is my way of saying - change your interview style. There are lots of smart people out there, this is not the best way to find them.

Contribute

Did you find a bug? any way to do it better? please feel free to pull-request it :)