Algorithms playground for common questions solved in Ruby syntax
github.com
github.com
https://github.com/kennyledet/Algorithm-Implementations
A fellow by handle of Yonaba implemented many of them in Lua. And Lua looks basically like a (Pascal-ish?) pseudo code.
Visual inspection suggests the longest common substring is 'aa' which has length 2. What am I missing here?
https://en.wikipedia.org/wiki/Longest_common_subsequence_pro...
The only way to ace is to memorize the implementations otherwise there was no way to get it done on a whiteboard in 20 minutes.
There were a lot of added weird constraints as well like implementing sorts with singly linked lists in constant space (not lg(n)) preventing the use of recursion or a stack in order to make a simple implementation.
I would say that the entire interview was basically a test of your knowledge of the companies published information as well as the algorithms linked to in the prep email sent by the recruiter.
Pretty much zero interest in the knowledge and skills you do have. Only one interviewer out of six asked questions about the resume and even then only briefly.
Ironically, fresh CS grads are more likely to do better on such a test because senior devs have filled their minds with ways of solving real problems and building complex living systems that actual humans use. They know that the once or twice a year they need to solve such a problem, they will likely find it well-solved in a library or site like this one. If not, they know that the boss will not be holding a stop watch over them -- she measures productivity in person-months, not person-minutes.
Even more ironically, this particular test also rewards premature optimization by stress testing your solutions for micro-optimization.
http://qz.com/96206/google-admits-those-infamous-brainteaser...
I want to knock off knapsack next