CodingReported in a candidate post, Aug 2017
Determine if three numbers are in AP or GP
Filed under SAP
The question
Given three integers, implement two functions is_AP and is_GP to determine if the numbers form an Arithmetic Progression or a Geometric Progression.
No write-up yet. Related questions below have one.
Related SAP questions
Collected from public candidate posts and coding forums. Updated Nov 2026.