From 9d0cc3ef6a55fe81ae9333c6e1e55e35fb618444 Mon Sep 17 00:00:00 2001 From: workingjubilee Date: Wed, 30 Oct 2019 13:28:41 -0700 Subject: [PATCH] Explain indexing discrepancies in saddle points --- exercises/saddle-points/.meta/hints.md | 8 ++++++++ exercises/saddle-points/README.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/exercises/saddle-points/.meta/hints.md b/exercises/saddle-points/.meta/hints.md index 82bc228a0..aded290c5 100644 --- a/exercises/saddle-points/.meta/hints.md +++ b/exercises/saddle-points/.meta/hints.md @@ -1,3 +1,11 @@ +## Rust Indices Start At 0 + +By convention, ordered sequences of values in Rust have their contents numbered +("indexed") starting from 0. This applies regardless of what the rest of the +exercise description in this README says, such as references to indices that +start at 1, so you will have to subtract 1 to translate those index numbers +to Rust index numbers. + ## Efficiency Notice This exercise uses a _vector of vectors_ to store the content of matrices. While diff --git a/exercises/saddle-points/README.md b/exercises/saddle-points/README.md index 744913859..84647d042 100644 --- a/exercises/saddle-points/README.md +++ b/exercises/saddle-points/README.md @@ -28,6 +28,14 @@ The matrix can have a different number of rows and columns (Non square). Note that you may find other definitions of matrix saddle points online, but the tests for this exercise follow the above unambiguous definition. +## Rust Indices Start At 0 + +By convention, ordered sequences of values in Rust have their contents numbered +("indexed") starting from 0. This applies regardless of what the rest of the +exercise description in this README says, such as references to indices that +start at 1, so you will have to subtract 1 to translate those index numbers +to Rust index numbers. + ## Efficiency Notice This exercise uses a _vector of vectors_ to store the content of matrices. While