• + 4 comments

    Hi i dont understand how the difference array works. What is the logic behind adding at one index and subtracting at the other and taking its sum?