Question similar to https://leetcode.com/problems/distance-between-bus-stops
Plus, there was an IDE style based one hour duration test to fix the rest API endpoints, I chose springboot backend code. The fixes were included around JWT security.
- Leadership principles
- Design a basic calculator, or arithmetic expression evaluator. Given an input String, return an Integer.
- How can you extend it to various operators, interviewer wanted to know on the terms of making an operator interface, implementing it, etc.- Leadership principles
- Asteriod collision
- Followup: You need to answer q queries. Each query is a pair (l, r).
For each query, imagine only the asteroids in the subarray asteroids[l .. r] exist and collide among themselves.
Return the number of survivors.Verdict: Rejected
Not sure why, might be because I couldn't solve the followup or I rescheduled the interviews a lot.