Panda Guru LogoPanda
Guru

BrowserStack | SDE 2 | Screening round

Screening Round [R1]

Questions:

Simple Problem at the end: Given two huge values as a String and you need to perform an Arithmetic operation:

Function perform(String a, String b, String action)

In an Integer, the max value that you can store is 9999 (4 digits).

Test cases:

BF: to go digit by digit.
To optimize, we go by chunk by chunk of size 4.
Solution: a + b <= maxValue(9999) => a <= maxValue(9999) - b.

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.