Applied directly through BrowserStack workday website without referral.
Started with Introduction and then asked about the projects, to explain high level design of it.
Questions on JS, Nodejs, ExpressJs something like
What happens when you enter a URL on the browser?
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 a Integer, Max value that you can store is 9999 (4 digits)
Test cases:
num1 = "12345678"
num2 = "99999999"
action = "compare"
num1="12349999"
num2="99991111"
BF: to go digit by digit
To optimise we go by chunk by chunk of size 4
Solution: a + b <= maxValue(9999) => a <= maxValue(9999) - b