First Phone Screen
Return true or false if sub array has sum K
Return all sub arrays having sum K
I used sliding window technique instead of unordered_map because of nervousness.
He asked will it work for negative sum and negative integers. Was a shocker for me.but i fixed it :)
Code had minor bugs pointed by interviewer and fixed all of them immediately.
Was asked to do second phone screen
Given an income and tax brackets , calculate tax ...wrote code
Design Tic tac toe. not aware of this problem...didnt implement it :(
Update : REJECT