Hold on!

Warning: this link might be unsafe, please double check the link before you proceed.

https://helloacm.com/find-out-the-longest-arithmetic-sequence-in-array-using-dynamic-programming-algorithm/