Jobs
Interviews

JUSPAY

Interview Questions for JUSPAY

1. How is a set implemented?

2. What two features would you develop to help Paytm cope with losing users?

3. What is a multithreaded environment, and how would you develop an application that can run in that environment without any issues?

4. Path Existence in Directed Graph Given a directed and unweighted graph characterized by vertices 'V' and edges 'E', determine if a path exists from a specified 'source' vertex to a 'destination' vertex. The edges are represented in a 2-dimensional array 'Edges' where each entry Edges[i][0] to Edges[i][1] represents a direct connection. Example: Input: Vertices: 4, Edges: 3Edge List: [[0, 1], [1, 2], [2, 3]]Source: 0, Destination: 2 Output: true Explanation: There is a path from the source (0) to the destination (2) following 0 -> 1 -> 2. Input Format: The first line contains an integer ‘T’, representing the number of test cases.The first line of each test case contains two integers 'V' and 'E'.The subsequent 'E' lines contain two integers per line, describing the directed edge from 'Edges[i][0]' to 'Edges[i][1]'.The last line of each test case specifies two integers, the 'source' and 'destination' vertices. Output Format: Output 'true' or 'false' for each test case regarding the existence of a path from the 'source' to 'destination', each on a new line. Constraints: 1 <= T <= 5 1 <= V, E <= 10^5 0 <= Edges[i][0], Edges[i][1] < V 0 <= source, destination < V Time Limit: 1 sec Note: Implement the function; there is no need to handle input/output operations directly, as they are managed elsewhere.

5. Explain the Shortest Job First Algorithm.