Stripe OA latest sharing | The question bank is very small. Analysis of high-frequency real questions

37 Views
No Comment

Recently, another classmate asked Stripe OA, the question types are still the familiar ones, and overall there is not much change. I would like to briefly synchronize the latest situation with you so that students who are preparing for interviews with this company can have a good idea.

Stripe OA latest sharing | The question bank is very small. Analysis of high-frequency real questions

Stripe OA basic form

Stripe’s OA has always been relatively fixed:

  • Duration: 60 minutes
  • Number of questions: 1 question
  • Type: Hard OOD (object-oriented design)

Although there is only one question, don’t be fooled by the number. This question is very long and requires a lot of implementation. Basically, you are designing the class structure while reading the question. At the same time, you need to quickly complete the code implementation, which requires both coding speed and design capabilities. The good news is that the current Stripe OA question bank is actually very small. Over the years, this company has basically come up with three sets of questions repeatedly. Many students have done dozens of OA sets, and according to statistics, they still rotate these classic questions.

Stripe OA exclusive real questions

This is a multi-stage load balancer implementation problem, which needs to gradually implement 5 parts of the function. The core is to provide each CONNECT Requests are assigned to target Jupyter servers and logged, while handling rules such as disconnection and sticky routing.

Stripe Online Assessment
Stripe Online Assessment

Part 1: Basic load balancing

  • Goal: for new CONNECT Request to select the server with the smallest number of current connections; if the numbers are the same, select the server with the smallest index (index starts from 1).
  • Data structure: Need to maintain the current number of connections for each server Connections_count(Array, length is NumTargets).
  • Output: for each CONNECT Request, return ConnectionId,userId,targetIndex Format log.

Part 2: Handling disconnections

  • New DISCONNECT Request: According to ConnectionId Find the server where it is located and reduce the number of connections to the server by 1.
  • Data structure: new Connection_to_target Dictionary, record each ConnectionId The corresponding target server index.
  • Constraint:DISCONNECT Only for connected ConnectionId.

Part 3: Sticky routing based on object ID

  • Add new constraints: if there are multiple CONNECT Requests specifying the same objectId must be routed to the same server, even if that server is currently under higher load.
  • Data structure: new Object_to_target Dictionary, record each ObjectId Bind target server index.
  • Logic: processing CONNECT , check first ObjectId Whether the server has been bound; if it has been bound, use the server directly; otherwise, the load balancing logic of Part 1 will be executed and ObjectId Bind to the selected server.

A bit of real advice

The difficulty of the Stripe OA 60-minute question is not in the algorithm, but in the ability to implement the project. The biggest challenge for many students when doing this question is actually time management. We have taught a lot about Stripe OA and are familiar with common problem types and implementation ideas. If you are currently preparing for Stripe or similar engineering implementation-based OA, and hope that someone can help you control the rhythm, remind you of key nodes, and avoid getting stuck on details during the exam, you can also Contact us Learn about specific preparation plans.

author avatar
Jory Wang Amazon Senior Software Development Engineer
Amazon senior engineer, focusing on the research and development of infrastructure core systems, with rich practical experience in system scalability, reliability and cost optimization. Currently focusing on FAANG SDE interview coaching, helping 30+ candidates successfully obtain L5/L6 Offers within one year.
END
 0