Algorithm · Robinhood · Medium
A social network platform logs user activity through a series of API requests, each tagged with a unique sequence number. Every request is given as a pair [ , ]: sequenceNumber: a distinct string identifier for the request (e.g., "1", "2", …). requestString: the action to perform, following one of the patterns below: "REGISTER": "v1/REGISTER/{user}/{initialBalance}" Creates a new user user with the specified starting balance. "FRIEND_REQUEST":…
Checking your access…