Reposted
Stripe · Phone screen
WithdrewStripe Internship Missing-Positive and Server-Allocation Screen
Software engineer · InternshipOct 2016
Shared by
Role: Software Engineering Intern
Result: Received an onsite invitation but did not attend
Timing: The exact screen day was not shared. October 2016 follows the report month.
The screen began with the first missing positive integer:
[2, 1, 2, 4]returned3.[2, 5, 6]returned1.
The follow-up used that helper for server management.
allocate(type)reserved the smallest available positive number for that server type and returned the type plus number.deallocate(type, number)released that number only for the matching type.
The candidate ran the code and wrote tests. Bounds, invalid releases, initial state, and exact result formatting were not shared.
Practice: Allocate and Reuse Server Names by Type.
They received an onsite invitation but chose not to attend.
0 total reactions. Your reactions: none.
0 comments
Comments
0No comments yet — be the first to share what you know.