From ff886e61ba64aff42f5190a7680af6b3640e338e Mon Sep 17 00:00:00 2001 From: OGordoo Date: Mon, 18 Oct 2021 15:14:55 +0100 Subject: [PATCH] partial_sums fix, wrong name --- subjects/partial_sums/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/partial_sums/README.md b/subjects/partial_sums/README.md index e1d665d1..c7911d94 100644 --- a/subjects/partial_sums/README.md +++ b/subjects/partial_sums/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a `partial_sums` function that receives a reference of an array of u64 and returns a vector with the partial sums of the received array. +Write a `parts_sums` function that receives a reference of an array of u64 and returns a vector with the partial sums of the received array. This is how partial sums work: @@ -34,13 +34,13 @@ This is how partial sums work: 3- So, in conclusion: ```rs -partial_sums(&[1, 2, 3, 4, 5]) // == [15, 10, 6, 3 ,1, 0] +parts_sums(&[1, 2, 3, 4, 5]) // == [15, 10, 6, 3 ,1, 0] ``` ### Expected Result ```rs -pub fn matrix_determinant(arr: &[u64]) -> Vec<64>{ +pub fn parts_sums(arr: &[u64]) -> Vec<64>{ } ```