Coinbase | Onsite | SWE IC5
Anonymous User
9350

Recently went through an onsite with coinbase for an IC5 role. Find my questions below:

Coding 1: Iterator question.

First given a 2D array, output the results in interleaving fashion.
Ex: [[1,2,3],[4,5],[6],[],[7,8,9]] ---> [1,4,6,7,2,5,8,3,9]

Create a series of iterators;

  • Range: Takes start end and increment and outputs numbers between.
    • RangeIterator(0, 10, 2) where 0 = start, 10 = end, increment = 2. Output should be [0,2,4,6,8,10]
  • Interleaving: basically doing same as first
  • Cycle: Takes in another iterator implemented above and keeps repeating the data once end is reached.

Coding 2: Currency conversion question. Plenty of examples of this on LC discuss.

HM Chat: Standard behavioral interview

System Design: Design a trading system.

Comments (17)