Skip to content

Commit

Permalink
Update ArithmeticProgression.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
godwinjs authored Jan 16, 2025
1 parent 6f8de64 commit 8003fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Maths/Progressions/ArithmeticProgression.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
console.log('Arithmetic Progression for non-constant common difference')

function calculateTerm(n, differences): number {
function CalculateNonConstantTerm(n: number, differences: number[] ): number {
const a = differences.shift(); // First term

if (n === 1) {
Expand Down

0 comments on commit 8003fed

Please sign in to comment.