ByteDance/TikTok front end interview questions
ByteDance/TikTok's front end interview is quite balanced in terms of interview format.
JavaScript
- Implement
Promise.all
. - Implement a function which extends
Array.prototype
.
User interface coding
- Implement a dropdown component.
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
- Examples:
- 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