There were 2 video and live coding interviews scheduled. Each interview was one hour long and continuously one after the after.
First interview: First 10 minutes for introduction, last 10 minutes for questions and 40 minutes for coding.
The question asked was on the lines of this: https://leetcode.com/problems/letter-combinations-of-a-phone-number/
Second interview: First 10 minutes he asked me for a project which did not end well and we discussed about it, last 10 minutes for questions and 40 minutes for coding.
The question was on the lines of this.
-------------------------------------------------------------
| A | B |
-------------------------------------------------------------
A1 | 2 | = A1 + A2 |
A2 |. 3 | |
-------------------------------------------------------------We had to design backend for this excel interface. The methods we had to implement were:
update(cellKey: String, value: String)
getAllCellValues()
getCellValue(cellKey: String)If a formula is passed we had to compute the value and also the value should get updated when the value in the cells which is referenced in the formula gets updated. It should be a recursive approach as a formula cell may refer another formula cell.