Browse Source

partial_sums fix, wrong name

content-update
OGordoo 3 years ago
parent
commit
ff886e61ba
  1. 6
      subjects/partial_sums/README.md

6
subjects/partial_sums/README.md

@ -2,7 +2,7 @@
### Instructions ### 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: This is how partial sums work:
@ -34,13 +34,13 @@ This is how partial sums work:
3- So, in conclusion: 3- So, in conclusion:
```rs ```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 ### Expected Result
```rs ```rs
pub fn matrix_determinant(arr: &[u64]) -> Vec<64>{ pub fn parts_sums(arr: &[u64]) -> Vec<64>{
} }
``` ```

Loading…
Cancel
Save