Unless of course you are interviewing for a graph heavy job.
Very interesting stuff though. Love graph algorithms have coded many myself in JavaScript to prep for interviews.
edit source:
my algorithms code base test suite
Unless of course you are interviewing for a graph heavy job.
Very interesting stuff though. Love graph algorithms have coded many myself in JavaScript to prep for interviews.
edit source:
my algorithms code base test suite
For example, (11. Check if an undirected graph contains cycle or not) can easily be solved by just performing a DFS with some exit conditions.
...but have you coded any in JavaScript after the interview as part of the job? I suspect for most people the answer is no. It has always seemed strange to me to ask a topic that you're never going to encounter during your day to day work (yes, I know for some roles this isn't true).
We just don't trust the university to say that you've done the projects and sat the exams and demonstrated competence (what it's doing when it issues a degree), so each company unwraps that abstraction and runs its own projects and exams on the same material. But it is fundamentally based on college curricula.
Trusting universities is likely out of the question. Eventually, I expect the industry will create something like the Bar Exam so each candidate can pass a trusted test once upon graduation (or even without going to college), rather than creating the burden for each company to do all that grading.