Hi susheelh,
It is hard to give a definitive answer to that question; there will be instances where this approach will work, there will be instances where this approach will work with slight modifications, and there will be instances where this approach will not work at all.
For instance, the same method would work if you increased the number of consecutive integers (like 10 consecutive integers instead of 8). You could make it work by modifying the solution if you were looking at the difference between first n terms and last m terms (just represent all the integers as x, x + 1, x + 2 etc. instead of a, b, c, d).
It would also work for consecutive even/odd numbers, just make sure to determine the common difference correctly (in this question, if we had 8 consecutive even integers, we could use the a, b, c, d and a + 8, b + 8, c + 8, d + 8).
The first example that comes to mind in which your method wouldn't work is if, for example, we were looking at the difference between not the sum, but the product of the first so many numbers and the last so many numbers.
Posted from my mobile device