HashedIn by Deloitte interview question

Find index in integer array till there the sum is equal from both side.

Interview Answer

Anonymous

Mar 17, 2021

Use two separate array and keep sum one from front and other from end. iterate together and find index where sum equals