Skip to main content

ByteDance/TikTok front end interview questions

We are now part of GreatFrontEnd!

Front End Interview Handbook is now part of GreatFrontEnd! We are working to migrate the content over and you may find the latest version of this page on GreatFrontEnd.

ByteDance/TikTok's front end interview is quite balanced in terms of interview format.

JavaScript

User interface coding

Trivia

  • Difference between localStorage and cookies.

Algorithm

  • Merge two sorted integer arrays, remove duplicates.
  • You have an image on a page, write css and js so that when mouse is over the image, it rotates 180 deg with 1 sec animation.
  • Given a list of points, find out if any four of them form a square. Return 'true' if possible, else 'false'.
    • Examples: [[0, 0], [2, 0], [1, 1], [0, -1], [-1, -1], [0, 2], [0, 1], [1,0]] -> true
  • Check for balanced brackets in a string.
  • Given two nodes, return the section of the tree between these two nodes.
  • Find the islands in a grid of land and sea.

Source: Glassdoor ByteDance Front End Developer Interview Questions