Coder Social home page Coder Social logo

interview-coding-challenges's Introduction

Interview Coding Challenges for Front End Engineer

Trying to sharpen my coding skills, I felt that the best and most practical way was to solve some of the interview questions circulating on the internet from companies like Facebook, Airbnb, etc.

NOTE: I know that my solutions MAY NOT be the best, if you have suggestions for improvements, please by all means drop me a message or add them to the repo directly.

Compiled List with Solutions (in Codepen) Here

Questions:

  1. Given two identical (but not the same) DOM trees, and a node from one of them, how do you find the same node in from other tree?
  2. How do you deeply flatten an array, recursively & iteratively?
  3. Given a M x N matrix of characters, we want a message that starts from character at (0, 0). We then move 1 column right and one row down to get the next character, except: If we run out of rows down, then move one row up instead, and vise versa. If we run out of columns, then the message ends.
  4. We want to do a type-ahead search whenever user enters a character, but we only want to call the API 500ms after user stops typing, how do you implement this?
  5. Using HTML and CSS, how would you create an image that would display another image (aligned to the bottom, right) when the user hovers over the image?
  6. How to implement square root function?

Sources:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.