Bip Interview Questions

Bip Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(57)
SQL
(50)
Product Sense & Metrics
(41)
Machine Learning
(31)
Probability
(21)

Bip Interview Questions

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

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

Given an (integer) height h and base b, write a function draw_isosceles_triangle that returns the shape of the isosceles triangle using (a 2D list) of 0s and 1s, where 0 and 1 represent the space outside and inside of the triangle, respectively.

If the given height h and base b cannot make a triangle, return None.

Note: Valid arguments for b should be odd

Example 1

Input:

h = 2
b = 3

Output:

draw_isosceles_triangle(h,b) -> [
  [0,1,0],
  [1,1,1]
]

Example 2

Input:

h = 3
b = 9

Output:

draw_isosceles_triangle(h,b) -> [
  [0,0,0,0,1,0,0,0,0],
  [0,0,1,1,1,1,1,0,0],
  [1,1,1,1,1,1,1,1,1]
]

Example 3

Input:

h = 5
b = 9

Output:

draw_isosceles_triangle(h,b) -> [
  [0,0,0,0,1,0,0,0,0],
  [0,0,0,1,1,1,0,0,0],
  [0,0,1,1,1,1,1,0,0],
  [0,1,1,1,1,1,1,1,0],
  [1,1,1,1,1,1,1,1,1]  
]

Example 4

Input:

h = 9
b = 9

Output:

draw_isosceles_triangle(h,b) -> None
Behavioral
Easy
SQL
Easy
Loading pricing options

View all Bip questions

Challenge

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

Discussion & Interview Experiences

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

Discussion & Interview Experiences

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

Jump to Discussion