Brex Interview Questions

Brex Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(41)
Machine Learning
(37)
SQL
(30)
A/B Testing
(11)
Product Sense & Metrics
(10)

Brex Interview Questions

Practice for the Brex interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Hard

Given an array of words and a max_width parameter, write a function justify to format the text such that each line has exactly max_width characters. Pad extra spaces ’ ‘ when necessary so that each line has exactly max_width characters.

Extra spaces between words should be distributed as evenly as possible. If the number of spaces on a line does not divide evenly between words, place excess spaces on the right-hand side of each line.

Note: You may assume that there is no word in words that is longer than max_width.

Example:

Input:

words = ["This", "is", "an", "example", "of", "text", "justification."]
max_width = 16

def justify(words, max_width): ->
[
   "This    is    an",
   "example  of text",
   "justification.  "
]
Data Structures & Algorithms
Easy
Machine Learning
Medium
Loading pricing options

View all Brex questions

Challenge

Check your skills...
How prepared are you for working at Brex?

Brex Salaries by Position

Data Engineer*
$590K
Data Engineer
Median: $590K
Mean (Average): $590K
Data points: 1
$125K
$177K
Data Scientist
Median: $139K
Mean (Average): $146K
Data points: 49
$61K
$300K
Software Engineer
Median: $113K
Mean (Average): $136K
Data points: 220

Most data science positions fall under different position titles depending on the actual role.

From the graph we can see that on average the Data Engineer role pays the most with a $590,000 base salary while the Software Engineer role on average pays the least with a $135,806 base salary.

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.