Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/beginner/slices.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn main() {

// this function searches an array to find a subarray with the given sum
// it returns the index where the subarray starts along with the length of the subarray
// if the array does not include any subarray with the sum, it returns a tuple with length or array
// if the array does not include any subarray with the sum, it returns a tuple with length of array
fn find_subarray(nums: &[i32], sum: i32) -> (usize, usize) {
for len in (1..nums.len() + 1).rev() {
for start in 0..nums.len() - len + 1 {
Expand Down