:::: MENU ::::

Front-End Engineer in San Francisco – solved code interview questions

I’ve came to this site (via hacker news) had few frontend engineer’s job interview questions. I’ve try to solved it quickly. May be you could solve it even more efficient way. Here are my solutions.

Write a function that takes two sorted lists of numbers and merges them into a single sorted list

 Given an array of integers (positive or negative) find the sub-array with the largest sum.

 Determine if a given string is a palindrome

Given a large hash table whose keys are movie names and whose values are a list of actors in those movies, write a function to determine the Bacon number of a particular actor.

 


One Comment

  • Reply Dhruv Bhatia |

    Nice one, I’d probably add some validation and throw TypeErrors if the input isn’t as expected, too.

    For #2, you could replace:

    with:

So, what do you think ?

  •