Solve problem 5 task 2

This commit is contained in:
Dimitri Lozeve 2020-05-10 21:28:20 +02:00
parent 324122088b
commit ec3b485a50

View file

@ -86,11 +86,10 @@
⍝ heavily simplified.) ⍝ heavily simplified.)
rr←{recur←{⍵[1]+×1+⍵[2]} ⋄ 1↓⌽⊃{(⊂(⊃⍵)recur),⍵}/⌽⍺,¨⍵} rr←{recur←{⍵[1]+×1+⍵[2]} ⋄ 1↓⌽⊃{(⊂(⊃⍵)recur),⍵}/⌽⍺,¨⍵}
∇ r←cashFlow pv rates ⍝ 2020 APL Problem Solving Competition Phase II
⍝ 2020 APL Problem Solving Competition Phase II ⍝ Problem 5, Task 2 - pv
⍝ Stub function for Problem 5, Task 2 - pv ⍝ Simply apply the formula for cashflow calculations.
⍝ Put your code and comments below here pv←{+/⍺÷×\1+⍵}
∇ text←templateFile Merge jsonFile ∇ text←templateFile Merge jsonFile
⍝ 2020 APL Problem Solving Competition Phase II ⍝ 2020 APL Problem Solving Competition Phase II