Member-only story
Python Data Engineer Interview Questions — Part III (Medium Level)
Prefix and Suffix Sum Problem — Forward and Backward Cumulative and Differential Sums
There are no limitations in solving different kinds of problems using Python. It’s best practice to solve using different techniques to strengthen your Python skills.
Interviewers (The most experienced ones) will always surprise you by giving different kinds of problems.
Even if you have solved thousands of problems. In the interview, it might look like a new problem. Did you experience this situation before? Feel free to share in the comment section.
But if you understand the methods for solving problems, you can easily solve any problem.
So, I always suggest aspirants not stick to the solution of any problem, try to understand the method or techniques that we use to solve problems with different edge cases.
Here is one such kind of problem I’m sharing in this part. i.e. Part — III.
Hope you have already solved the previous problem in Part I and Part II.
Problem Statement:
You have been given two lists of the same or different lengths. You have to return the sum of same-indexed…