Senior Software Engineer
Design a Task Scheduler
Design a Task Scheduler that can support one-time tasks and recurring tasks, with recurrence defined by cron expressions. **Approach**: Utilize ExecutorService, a Queue, and wait()/notify() for task coordination and execution. Consider how to apply the Strategy pattern so that different task types, especially those based on cron, can calculate their next execution independently.
This question was asked in
Paytm Senior Software Engineer Interview Experience
The interview process at Paytm consisted of three rounds, focusing on Data Structures and Algorithms (DSA) as well as System Design concepts. Candidates faced a mix of coding challenges and design questions, with increasing difficulty as they progressed. Overall, the experience was engaging, providing insights into technical problem-solving and design skills required at Paytm.