Endowus Senior frontend Interview experience
Summary
I recently interviewed for a Senior Web Developer role at Endowus. After completing a HackerRank OA, which included a DSA problem and several JS/REST API questions, I was invited for an interview involving a React assignment. Despite implementing most required functions, I was rejected due to unoptimized code and insufficient time for tests.
Full Experience
I recently interviewed for a Senior Web Developer role at Endowus. I applied on LinkedIn and received a HackerRank OA link. The OA comprised a series of JavaScript and REST API questions, along with one Data Structures & Algorithms problem. Following the OA, I was shortlisted for the interview round.
The interview itself was primarily a React assignment. The task involved a list of cards that were already rendered, and my goal was to implement functions to delete, add, and move items up/down. Additionally, if time permitted, I was expected to write test cases.
I managed to write all the required functions, but unfortunately, I didn't have enough time to write tests. My initial assumption about the data structure led me to write unoptimized code, which became a significant point of discussion during the entire interview. Ultimately, I was rejected because my code wasn't optimized, and I believe they also expected me to deliver comprehensive tests, especially for a senior role.
Interview Questions (2)
Given an array of prices, find the maximum profit you can achieve by buying and selling a stock once. You need to identify a day to buy the stock and a later day to sell it to maximize profit.
Implement a React component that displays a list of cards. The component should support the following functionalities: delete individual cards, add new cards, move cards up in the list, and move cards down in the list. Additionally, if time permits, write unit tests for these functionalities.