Ques 1a: Given a linkedlist of possitive and negative integers, remove consecutive elements from the list which sum to zero. For example-
For [1, 2, -2, 3] return [1,3]
For [1, 2, 4, -2, -3, -1, 7, 8] return [1, 7, 8]
Ques 1b: Same as above but instead of summing to 0, the elements should sum to a given integer K
Ques 2: Leadership principle question about facing an obstacle and how I overcame it.
The interview was over Chime which was ab absolute pain. Although my Microsoft Teams works smoothly, Chime kept disconnecting. The recruiter was helpful and called my mobile instead due to network issues with chime.