These questions were shared by one of the students of my course on Twitter.

He was using my course for the interview preparations and thus shared his interview experience as a good will. He had appeared for SDE2 role and the agreed compensation was around $65k in base which is equivalent to 60lacs INR at the time of writing this article. MercorAI pays in dollar so that is a plus point but they have 996 rule which work is from 9am to 9pm for 6 days of week.
Round 1: Machine coding – Tic-Tac-Toe
Tic-Tac-Toe is one of the most common machine coding questions that you can expect in frontend interviews for senior level. The emphases while coding this is in generating the dynamic grid of size N and evaluating the winner properly.
This game has to be played with two players in different turns.

I have a solution for this in my course with an Bot that is almost impossible to beat. Practice this question.
Round 2: Machine coding – Typeahead or Autocomplete search in React
Again one of the most common interview questions. I have seen this being asked by atleast 10 different companies.
Problem statement:
Must have
- Create a search functionality which will show the suggestion when something is typed such as an autocomplete feature.
- Use this dummy api to fetch and show the data. Here is the alternate dummy api incase the previous one is not working.
Added level of difficulty
- Add accessibility for keyboard so that user can navigate through keyboard buttons.

Round 3: Machine coding – Infinite scroll in React
Create a custom hook in React that helps to support the Infinite scroll.
const { isLoading, results } = useInfiniteScroll(containerRef);
That will return the result and show the loading state if the API call is in progress. Once the user is about to scroll to the end, fetch the next set of result.
If you are preparing for your frontend interviews, do checkout my course and get lifetime access to the best frontend interview preparation resource. Real interview questions of 60+ companies.