Stripe OA Real Exam Questions Sharing & Preparation Insights

185 Views
没有评论

Stripe is a well-known payment processing company, and their interview questions are super unique - they're closely tied to their actual business. Word is, Stripe's question bank is pretty limited, so questions get repeated a lot. Sharing some Stripe OA Real Exam questions here - hope this helps you out! Sharing some Stripe OA Real Exam Questions here - hope this helps you out!

stripe oa

Stripe OA coding 1

Given a grid composed of black and white squares, with rows rows and cols You will also get an array named black, which contains the coordinates of all black squares (in the format of [row, column]).

Your task is: find out how many \(2 \times 2\) small squares (that is, sub - matrices of 2 rows and 2 columns) in this grid exactly contain 0 to 4 black squares. Finally, you need to return an array of length 5, where the i - th position of the array represents: the number of \(2 \times 2\) small squares with exactly i black squares small squares with exactly i black squares.

The problem guarantees that each coordinate in the black array is different, and there will be no repeatedly marked squares.

Example

The size of the grid is 3 rows and 3 columns (rows = 3, cols = 3). The coordinates of the black squares are [[0, 0], [0, 1], [1, 0]]. The grid you get is like this =>

Among all possible \(2 \times 2\) small squares.

  • There is 1 small square with no black squares at all.
  • There are 2 small squares containing 1 black square.
  • There are 0 small squares containing 2 black squares.
  • There is 1 small square containing 3 black squares.
  • There are 0 small squares containing 4 black squares.

Therefore, the output is. [1, 2, 0, 1, 0].

Stripe OA coding 2

There is a group of mysterious numbers (numbers), among which there are some number pairs. They have the same length, and only one digit is different. Your task is to find the number of such number pairs.

Requirements:
Given a numeric array numbers, find all number pairs (i, j) that meet the conditions, where.

  • i is less than j.
  • The number pairs have the same length.
  • Only one digit is different.

Example:
Input. numbers = [1,151,241,1,9,22,351]
Output. 3
Explanation.

  • The numbers 1 and 9 differ by one digit, so they are a number pair.
  • The numbers 151 and 351 differ by one digit, so they are a number pair.
  • The numbers 1 and 9 form a number pair again (because there are multiple 1s in the array).
  • The same numbers (such as two 1s) cannot be counted as a number pair.

Stripe OA coding 3

In the dynamically evolving realm of web hosting, providing clients with a clear asset overview is key to enhancing user experience. The development team needs to create a feature for the dashboard of online hosting clients to generate a report on all clients and the number of active websites they own.

The report results should include the following columns.

  • email:: The client's email address
  • total_active_sites:: The total number of active websites per client

The results should be sorted in ascending order by email.

Note:: Only include active websites.

Table Structure

  • customers
    • id (integer, primary key): The client's identifier
    • email (VARCHAR(255)): The client's email address
  • sites
    • customer_id (integer, foreign key): Pointing to the client's ID
    • url (VARCHAR(255)): The website's URL
    • is_active (boolean): The status of the website (1 indicates active. 0 indicates inactive)

ProgramHelp: Professional interview helper

Whether you don't know how to write code, have questions about homework, are preparing for an interview, or need someone to give you advice online in real time during an exam, we can provide super professional and super considerate help. online in real time during an exam, we can provide super professional and super considerate help. With ProgramHelp, you don't have to worry about those troublesome things in study and career, just contact us.

author avatar
azn7u2@gmail.com
END
 0
Comment(没有评论)