In my recent job switch, I got interviewed at many companies, HealthPlix is one of them. The interview lasted around 1 hour. Questions that were asked are of medium level.
Question 1 on Javascript: Valid Parenthesis Checker
Given a string containing just the characters "("
, ")"
, "{
“, "}"
, "["
, and "]"
, determine if the input string is valid. An input string is valid if:
- Open brackets must be closed by the same type of brackets.
- Open brackets must be closed in the correct order.
Input: "()"
Output: true
Explanation: Brackets are well formed, so we need to return true
We have created an article and a video on this question, below are the links.
Question 2 on React Native: Creating an Infinite Scroll
The interviewer asked to implement an infinite scrolling list using React Native’s FlatList
component. This is also one of the most asked interview question. Below are the link to the article and video.
Creating an Infinite Scroll with FlatList in React Native